Reputation: 11
I am currently developing an application. This application utilizes the Patch function to update a SharePoint list. When I attempt to patch the fields, I encounter an error message stating: "Network error when using the Patch function, an error occurred on the server."
I have conducted thorough checks and confirmed that the all the column names but still getting the error.
Upvotes: 1
Views: 37388
Reputation: 1
This error can be caused if different version of data used in backend(SharePoint list) and PowerApps. Refreshing the data source before Patch will work sometimes.
Refresh("SharePoint List Name")
Upvotes: 0
Reputation: 2228
Below are some of the reasons you get the network error when using a patch function in Microsoft Power Apps applications:
One of the columns in your SharePoint list is required/mandatory and you are not passing any value to this column using Patch function
You are not passing the value with correct data type to one of the SharePoint list columns. For example:
You have a number column in your SharePoint list and you are passing text value from patch function for the number column
You have a date and time column in your SharePoint list and you are passing wrong value from patch function for the this column
You have a column or list validation applied in your SharePoint list which is not fulfilled while using Patch function
So, try validating above things once and make sure you are passing valid data while using Patch function.
You can also use Monitor tool to know more about network error in Power Apps:
Microsoft Documentation: Power Apps Monitor overview
Upvotes: 2