Hi everyone,
I'm currently developing an app using Power Apps, where I've set up a status filter to manage requests with statuses "New," "Pending," and "Completed." These requests are displayed in a gallery, and I can update their status using a form that patches changes back to a SharePoint list.
I'm able to change the status from "New" to either "Pending" or "Completed" without any issues. However, I encounter problems when I try to change a status from "Pending" to "Completed." Whenever I attempt this, I often receive an error: "An error occurred on the server." Interestingly, I also face similar issues when trying to change from "Completed" back to "Pending" or "New," and from "Pending" to "New."
Could anyone shed some light on why this error might be occurring only with certain status transitions? Any insights or solutions would be greatly appreciated!
Thank you!
PS. The code I am using is: for the form, onsuccess:
Patch(tracker,
lookup(tracker, ID= Gallery.selected.ID),
{ Vendor:{Value:vendorcombobox.selected.Value},
Rerquest_Status (Value:requeststatus.combo.Selected.Value} })