Others

Fix Power Apps Patch Function 502 Network Error with SharePoint

Maira MehtabMaira Mehtab Oct 9, 2026 870 views

Question details

The user is encountering a 502 Bad Gateway network error when trying to write or update data using the Patch or CreateRow function in a Power Apps canvas app connected to SharePoint.

Product
Microsoft Power Apps
Device & OS
not provided
Scenario
Attempting to submit or update data to a connected SharePoint list from within a Power Apps canvas app.
Observed behavior
Reading SharePoint data works correctly, but Patch or CreateRow operations fail and return a network error with a 502 Bad Gateway response.
Before you start

Ensure that your internet connection is stable and that you have basic read access to the connected SharePoint site before troubleshooting write permissions.

Solution 1Recommended

Verify SharePoint List Permissions

Ensure your user account has the correct permissions to write or edit data in the target SharePoint list.

A common cause for a 502 Bad Gateway error on write operations is insufficient permissions. While you may have access to view the app and read the data, SharePoint requires specific permissions to create or modify rows.

1
Check User Permissions

Navigate to your connected SharePoint list in a web browser. Click the gear icon to go to Settings > List settings, and select 'Permissions for this list'.

2
Verify Edit Access

Confirm that your account (and the accounts of other affected users) has 'Edit' or 'Contribute' permissions assigned, rather than just 'Read' access.

3
Test with Other Users

Ask colleagues who have confirmed Edit permissions to perform the same Patch operation. This helps determine if the 502 error is specific to your account or a broader tenant-wide issue.

Verify SharePoint List Permissions
Permission Syncing: If permissions were recently changed, it may take a few minutes for them to sync and take effect in your Power Apps session. Try refreshing the app.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While Power Apps and SharePoint require complex Microsoft ecosystem configurations, WPS Office provides a lightweight, highly compatible alternative for everyday document, spreadsheet, and presentation tasks. Enjoy a familiar interface without the heavy subscription costs.

  1. 1. Download the Installer: Visit the official WPS website and click 'Download WPS Office Free'.
  2. 2. Install the Suite: Run the downloaded installer and follow the on-screen instructions to set up WPS Office on your device.
  3. 3. Start Creating: Open WPS Office to seamlessly view, edit, and create documents compatible with Microsoft formats.
Fully compatible with Microsoft Office formats like DOCX, XLSX, and PPTX.Lightweight application that runs smoothly on standard PC and mobile devices.Free to use with comprehensive built-in document management tools.Familiar user interface requiring zero learning curve for migrating users.
microsoft office alternative - wps office

Frequently Asked Questions

What does a 502 Bad Gateway error mean in Power Apps?

A 502 Bad Gateway error typically indicates that the Power Apps server received an invalid response from the backend server (like SharePoint). This is often due to permission issues, temporary outages, or improperly formatted data in the Patch function payload.

Why does reading SharePoint data work but Patching fails?

This commonly happens when a user has 'Read' permissions for a SharePoint list but lacks 'Contribute' or 'Edit' permissions. This prevents them from writing or updating data via the CreateRow or Patch functions.

How can I check network requests in Power Apps?

You can check network requests by using the built-in Power Apps Monitor tool. Open your app in Edit mode, go to Advanced Tools on the left panel, launch Monitor, and perform the action to see detailed request and response logs.