A family of Microsoft on-premises document management and storage systems.
The error indicates a failure when Excel (Power Query) calls the remote SharePoint service during refresh. A 500 Internal Server Error is a server-side failure, but from the Excel/Power Query side there are several common causes and checks:
- Check the data source path and availability
Even if the file can be opened in the browser, the path used by Power Query must still be valid and accessible:- In Excel, go to Data > Get Data > Data Source Settings.
- Select the SharePoint connection and verify the URL and file path are correct and still exist.
- If the file was moved, renamed, or the library structure changed, update the path using Change File Path and then select Get Data again.
- Verify credentials and permissions
Power Query uses its own stored credentials, which can differ per user:- In Data Source Settings, select the SharePoint connection and choose Clear Permissions.
- Reconnect and provide the appropriate authentication method and credentials when prompted.
- Ensure the account used has at least read access to the SharePoint site, library, and file. A subtle permission difference between users can cause one user to succeed and another to fail.
- Handle data source errors systematically
Power Query distinguishes between local and remote errors. A 500 error is a remote error from the SharePoint service:- Retry the refresh later in case of intermittent service or network issues.
- Confirm with the SharePoint administrator whether there are changes to the site, maintenance, or throttling that might affect requests.
- Check if there were changes to authentication (e.g., conditional access, MFA, or privacy settings) that might block the request for one user.
- Check for locked or open files
If the target Excel file on SharePoint is open or locked (for example, by another user or in a non-subscription version of Excel), the refresh may fail:- Ensure the source file is saved and closed.
- If someone else has it open, ask them to close it or check it in.
- Compare configuration with the working user
Since another user can refresh successfully:- Compare the Data Source Settings between both users (URL, authentication method, privacy level).
- Ensure both are using the same version of Excel and Power Query features.
If the issue persists after these checks, the next step is to involve the SharePoint administrator to review server logs for the 500 error and confirm there are no server-side issues or restrictions affecting this specific user or request pattern.
References: