← Al Davies, 250 High Street

Power Apps "Network error when using Patch function" on a SharePoint list

This error means the save was rejected, and it is often not a network problem at all. Microsoft says it typically means the app cannot reach the data source, with a lost connection, an unavailable source or missing permission as common causes; a Microsoft Q&A thread adds bad column values.

What does the error say?

A Q&A poster put it this way: "I receive this error when trying to add to the list using the Power Apps form". The message in that thread was "Network error when using Patch function: The requested operation is invalid."

How does Patch work?

Microsoft says Patch modifies or creates a record in a data source. You give it the data source, a base record and one or more change records. To change a record, you have to be able to follow the base record back to the data source, for example from a gallery's Items property or a LookUp. To create one, use the Defaults function as the base record.

Change records run in order, and later values override earlier ones. Patch returns the record it changed or created. Microsoft's sample data: Patch( IceCream, LookUp( IceCream, Flavor = "Chocolate" ), { Quantity: 400 } ) changes the Chocolate record, and Patch( IceCream, Defaults( IceCream ), { Flavor: "Strawberry" } ) creates a new one.

What does Microsoft say causes it?

Microsoft's page groups the errors into data source connectivity, permissions and data conflicts.

Error textWhat Microsoft saysWhat it suggests
Network error when using Patch functionThe app cannot reach the data source. Common causes: a lost internet connection, a data source briefly unavailable, or not enough permission for the user.Check the connection and the user's rights to the list.
Conflicts exist with changes on the serverAnother user or process changed the same record between your read and your write.Call Refresh on the data source and retry.
A permission errorThe user cannot create or change records in the data source.Use IfError to catch it and guide the user.

What did people find when the connection was fine?

The answers in the Q&A thread are community replies, not Microsoft documentation. They point to the data being sent: a value that does not match the column type, a required column left out, a choice or lookup value that is not in the list, or the wrong column name. They also mention a column set to enforce unique values that already holds the value you send.

Two more ideas from the same thread: the user needs Edit or Contribute access to the list, and after you change a column type you can remove and re-add the SharePoint data source. For a choice column that shows placeholder items, see our guide on a choice column that shows Item 1, Item 2.

How do you find the field that fails?

The thread suggests opening Advanced tools, then Monitor, and submitting the form again to see which field the request fails on. Another sensible check from us: save one item with only the Title column filled in. If that works, add one column back at a time until it breaks.

Our guide on Patch with a SharePoint list shows the basic formulas to start from.

What else does Microsoft note about Patch?

How do you show a clear message instead?

Microsoft says to wrap Patch in IfError, or use IsError on the result, so you can respond when a save fails. You can also use the Errors function to look at what went wrong. Microsoft's example for many records shows IfError with Notify and FirstError.Message, which prints the reason to the user.

Form still failing?

Al Davies builds tools that cut busywork and missed steps for teams. Bring the Patch formula and the list's column settings to a first call. The first call is free and takes 45 minutes.

FAQ

Is a Patch network error always a connection problem?

No. Microsoft lists connection, unavailable source and permissions, and the Q&A thread adds column type, required column and value problems.

What does Microsoft say to do about a conflict error?

Call the Refresh function on the data source and retry the save.

Which tool shows the failing field?

A Q&A reply suggests Advanced tools, then Monitor, while you submit the form.

Can Patch change several records at once?

Yes. Microsoft says to pass a table of base records and tables of change records, with the same number of records in each.

Does Patch show related table fields?

No. Microsoft says the return value does not include fields of a related table, so use a separate LookUp.

Sources