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 Apps
Unanswered

patch error

(0) ShareShare
ReportReport
Posted on by

hi all i have text input which contain an equation as sum of some values that i want to patch in SP using the following code 

Patch('KPI answers (Data)',{Title:"1", Organization:Organiztion.SelectedText.Value,'Sub-Organization':'Sub-Organization'.SelectedText.Value,Area:Area.SelectedText.Value,Shift:shift.SelectedText.Value,Supervisor:Supervisor.SelectedText.Value ,'Submitted By':User().FullName,Date:Now(),Comment:Comment.Text,'KPI % ':KPI})

when i patch i get the following erorr 

 

Capture.JPG

Please advise 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @MostafaGamal 

    You are missing the second element of the patch, the record you intend to patch or to tell PowerApps to create a new record.  The syntax is Patch(yourdatasource,ThisRecord,{values to patch}) or Patch(Yourdatasource,Defaults(yourdatasource), {values to patch})

  • MostafaGamal Profile Picture
    on at

    i tried your syantex and it gives me the following error 

    Screenshot (248).png

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @MostafaGamal 

    Then the problem is in your values.  They are not corresponding with the datasource or you are missing a required field.  Try adding them one by one till you find the problem. Another potential problem is that you are using SelectedText in your formula.  That is being deprecated.  Try Selected.Value instead.

  • MostafaGamal Profile Picture
    on at

    I tried all of that 

    the type of data source in SP is number and the type of the text input is Number, i just use the name of the text input in the synatex when i try to use text it gives me error 

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard