# Power Apps Network Error When Using Patch: Causes and Fixes

> For the full documentation index, see https://250highstreet.com/llms.txt

> Power Apps shows a network error from Patch on a SharePoint list? See the usual causes, from column type and required fields to permissions, and how to test.

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 text | What Microsoft says | What it suggests |
|---|---|---|
| Network error when using Patch function | The 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 server | Another user or process changed the same record between your read and your write. | Call Refresh on the data source and retry. |
| A permission error | The 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](/guides/power-apps-choice-column-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](/guides/power-apps-patch-sharepoint-list/) shows the basic formulas to start from.

## What else does Microsoft note about Patch?

- Patch with a table of base records and a table of change records edits several records in one call. Each change table must hold the same number of records as the base table, or an error occurs.
- The return value gives no fields of a related table. Look them up with a separate LookUp.
- Patch is not itself subject to delegation, but a LookUp, Filter or ForAll inside the same formula can raise delegation warnings. See [the delegation warning guide](/guides/power-apps-delegation-warning-sharepoint/).
- Microsoft's choice and lookup samples are written for Dataverse. For a SharePoint list, the record you pass can look different.

## 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

- [Patch function (Microsoft Learn)](https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch)

## Related guides

- [Power Apps Patch Function for a SharePoint List](/guides/power-apps-patch-sharepoint-list/)
- [What the Power Apps delegation warning means for a SharePoint list](/guides/power-apps-delegation-warning-sharepoint/)
- [Why a Power Apps choice column shows Item 1, Item 2 and not your choices](/guides/power-apps-choice-column-shows-item-1-item-2/)
- [Power Automate BadGateway Error: Fix It](/guides/power-automate-badgateway-error/)
- [How to check if text or a list contains a value in Power Automate](/guides/power-automate-contains-function-text-array/)
- [How to save a Power Apps combo box to a SharePoint person column](/guides/power-apps-people-picker-save-sharepoint-person/)
- [Power Apps shared app: no access to the list](/guides/power-apps-shared-app-users-cannot-open-list/)

Source: https://250highstreet.com/guides/power-apps-network-error-when-using-patch/
