Fix Power Apps Patch Function 502 Network Error with SharePoint
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.
Ensure that your internet connection is stable and that you have basic read access to the connected SharePoint site before troubleshooting write permissions.
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.
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'.
Confirm that your account (and the accounts of other affected users) has 'Edit' or 'Contribute' permissions assigned, rather than just 'Read' access.
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.

Use Power Apps Monitor and Consult the Community
Capture detailed session logs using the built-in Monitor tool to identify the exact cause of the 502 gateway error and seek expert assistance.
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. Download the Installer: Visit the official WPS website and click 'Download WPS Office Free'.
- 2. Install the Suite: Run the downloaded installer and follow the on-screen instructions to set up WPS Office on your device.
- 3. Start Creating: Open WPS Office to seamlessly view, edit, and create documents compatible with Microsoft formats.

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.




