Fix Excel Power Query Cannot Connect to SharePoint Credentials
Question details
The user is unable to refresh Power Query data connected to a SharePoint team site due to persistent credential errors.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Refreshing a data query linked to a SharePoint site within Excel Power Query.
- Observed behavior
- Excel displays an error stating it cannot connect with the supplied credentials, even though the user has verified their account permissions.
Verify that your Microsoft 365 account password hasn't recently expired and that you have active permissions to view the target SharePoint team site.
Clear and Reset SharePoint Data Source Permissions
Clear your cached credentials in Power Query and re-authenticate using your Organizational Account to restore the connection.
Excel stores authentication details to speed up data refreshes. If your password changes or a login token expires, Power Query will fail to connect until the outdated stored permissions are cleared.
In Excel, navigate to the 'Data' tab on the ribbon, click on 'Get Data', and select 'Data Source Settings'.
In the Global permissions or Current Workbook tab, find and select the URL for your SharePoint site.
Click the 'Clear Permissions' button to remove the cached credentials, then confirm the deletion.
Close the settings, refresh your query, and when prompted, select 'Organizational account' and click 'Sign in' to enter your current credentials.
Update the Data Source URL
Check if the SharePoint site URL has been updated or moved, and adjust the connection source accordingly.
Switch to WPS Office for a Streamlined Spreadsheet Experience
If complex connection configurations and frequent credential errors in Microsoft Excel disrupt your workflow, try WPS Office. It provides a fast, lightweight, and highly compatible alternative for everyday data processing.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up the software.
- 3. Open Your Workbooks: Launch WPS Spreadsheets and seamlessly open your existing .xlsx files without losing any formatting.

Frequently Asked Questions
Why does Power Query keep asking for SharePoint credentials?
This usually happens when your cached login token has expired or your password has changed. Clearing the global permissions in Data Source Settings forces Excel to fetch a fresh, valid authentication token.
What is the difference between Windows and Organizational account authentication?
Windows authentication uses your local network domain credentials, whereas an Organizational account connects securely to Microsoft 365 cloud services like SharePoint Online via modern authentication protocols.
Can I connect to a SharePoint team site using Anonymous access?
No. SharePoint team sites are secure and require explicit permissions. Choosing Anonymous access will result in immediate connection failures and credential errors.




