web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch function in a Ga...
Power Apps
Unanswered

Patch function in a Gallery issue

(0) ShareShare
ReportReport
Posted on by 11

Hello everyone.
Could you please help me in this issue, I would like to make updates in my Gallery and these modifications should be shown in my database (SharePoint list) also but is not the case. 

LaylaMarhoum_0-1715857605625.png

 

Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @LaylaMarhoum 

     

    can u please copy paste you code here so we do not need to retype?

     

    thanks in advance

  • LaylaMarhoum Profile Picture
    11 on at

    Sure:

    Patch(
        TPM_PLN,
        ThisItem,
        {
            Activity1: DataCardValue1_1.Text,
            Activity: activGal.Text,
            Resource: ResourceGal.Text,
            Interval: intervGal,
            CyclesRecorded: CyclesRecoGal,
            'Next activity by': NextactGal,
            Pourcentage: PercentageGal,
            Cavity: CavityGal,
            Quantity: OrgQteGal,
            'Cycles Number': nbrCyl
        }
    )
    Now the code doesn't show me error but when I go to preview mode and try to save a modification that I did in my row, I receive the following error notification: 
    LaylaMarhoum_0-1715866934722.png

    I deleted the empty columns in my list to not have any blank cells but it still occurs.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    mmbr1606_0-1715867096193.png

     

    i guess you are recieving this error because u are missing the values here like the .Text in the first ones.

     

    depending on your column you need different things here.

    can u specify which columns you are using?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

     

  • LaylaMarhoum Profile Picture
    11 on at

    the type of the columns that you mention with the red flesh is number, so .Text is not needed, and it generates an error when I write for example CavityGal.Text, because the type of the CavityGal text input is a Number.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    u need to use .value if its a number column

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • LaylaMarhoum Profile Picture
    11 on at

    thank you, but it shows me error in the formula if I add  .Value or  .Selected.value 

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    the sharepoint column is a number column you said right? what kind of input control are u using in the app?

     

    are you using classic or modern controls in your app? are the fields in a form or not?

  • LaylaMarhoum Profile Picture
    11 on at

    yes, the SharePoint column has a number type, the input control is a classic text input with a number type also (a percentage), these text input controls are copied from a form and pasted in the gallery (I hope you understand what I did).

    LaylaMarhoum_0-1715875343964.png

    LaylaMarhoum_1-1715875410151.png

     

    you can see here my Tree view

    And I also used this formula to set the value of Pourcentage Column inside of the Gallery

    LaylaMarhoum_2-1715875553419.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard