I'm building an app that connects to a SharePoint list. I have had trouble with it in the past trying to get it to auto-populate and update certain fields, but seemed to find some solution to those issues. Now, however, when I try to submit the form, I am getting the error: "Network error when using Patch function: The requested operation is invalid". I am using a button with the OnSelect property being SubmitForm(Form1).
I have attempted reconnecting to the data source and re-making the submit button. In one instance, the submit button worked briefly after being remade. I am not sure where the issue lies at this point or how to troubleshoot further.
You can’t just change multi selection from yes to no. Then you need to remove that data card and add it again
If you haven't yet, I'd first try refreshing the data in the app and then deleting and re-adding the field that is giving you the error. I'm not sure why, but sometimes rebuilding the part that's having an error fixes the issue.
I have the same issue. Initially I have created columns in the list.one of the column was choice column with multi selection then created App and worked very well. after I changed to multi selection in to "No" then apps shows error. Can you support
Thanks for this! I had this in a few places and was pulling my hair out trying to figure out where the error was coming from! I changed it to use the Office365Users connection instead and the error is now gone!
Please check that you don’t have any calculated fields in your form or patch
I had the same problem and I looked at countless explanations on the web from all kinds of experts explaining complicated patch syntaxes.
What solved the problem for me was a setting in my SharePoint list that required unique values. That meant a certain choice could only be selected for one single data set. ... When I deselected, the "unique value" requirement, the PowerApp worked fine. I could easily edit as well as add new data.
Hope this helps as much as the comments from the experts.
Keep well
Thorsten
i ended up recreating the app and it got rid of the errors.
This can happen If you are validating User().Email = yourEmail in any of the controls
or using createdby = user().email [since you would have created the list items]
If these do not work,
It would be better if you shared the error for better understanding.
I'm having the same problem but only for other uses who are trying my app. I can use it just fine my SharePoint list is populating but other users get errors.
I have the same error doing the same function where you able to find a solution for your error?
Thank you for any assistant you can provide.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional