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 / Using Patch to update ...
Power Apps
Unanswered

Using Patch to update SharePoint list throwing generic error

(0) ShareShare
ReportReport
Posted on by 4

Hey all,

 

So I am building my first app and I have run into an issue I can't seem to solve.  When I try to Patch an item in a SharePoint list it throws a generic server error.  I can create a new record using Patch with no issues, so permissions don't seem to be a problem as i am the site owner.

 

I am not using any forms for this as I needed to customize the layout based on our requirements.  For this test I was just trying to update one record but also pass in ReportName since it's a required field(it can't be changed and is selected from a dropdown)  I have a save button with the following code in the OnSelect.  I also tried to hard code the ID to make sure it wasn't that.

 

Patch(WorkRequest,{ID:Value(txtRequestIDEdit.Text)},{ReportName:ddlReportName.Selected.Value,MISOwner:ddlMISOwnerEdit.Selected.Value});Refresh(WorkRequest)

 

Below is the error i am seeing after hitting the save button.  Being new this isn't too helpful and everything i have searched for here hasn't solved this particular issue.  

 

 ServerError.png

 

I am also getting the same error when i try to use an edit form.  Any help or links would be greatly appreciated.  Also if any further details are needed lt me know and I can share.

Categories:
  • Meneghino Profile Picture
    6,949 on at

    What type of column is ReportName? (I presume text)

    What type of column is MISOwner? If it is person then this is where the issue is. If text then should not be an issue.

    Try hardcoding the values as well to see if that is the issue, like this:

    Patch(WorkRequest, {ID: 123}, {ReportName:"foo", MISOwner:"bar"})

    PS The Refresh is superfluous and will just add execution time.  After a Patch all controls that depend on that data source will be refreshed.

  • nickice Profile Picture
    4 on at

    I tried to hard code all of the fields with the same result.  Yeah, ReportName is a text field and MISOwner is a choice column.  

  • Meneghino Profile Picture
    6,949 on at
  • nickice Profile Picture
    4 on at

    I just looked and I had changed that field back to a text field to see if that was the issue.  So both fields are single line of text and I am still seeing the error.  Is there any error logging?  

  • Meneghino Profile Picture
    6,949 on at

    The only way I know to get the error message is to create a support ticket.  You will need a session ID later.

    Create the ticket here:

    _.JPG

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard