Power Query Problems

Fix Power Query Invalid User ID or Password Error in Excel 365

Maira MehtabMaira Mehtab Nov 13, 2026 868 views

Question details

The user needs to resolve a Power Query credential error in Excel 365 that reports an invalid user ID or password when importing data, despite unchanged workbook, data source, and Excel settings.

Fix Power Query Invalid User ID or Password Error in Excel 365
Product
Microsoft Excel 365 Power Query
Device & OS
Windows
Scenario
The user is importing data through Power Query from an existing workbook and data source without changing any settings.
Observed behavior
Excel 365 repeatedly reports an invalid user ID or password, and the error persists even after signing in as a different user.
Before you start

Before changing credentials, confirm that the data source is reachable, note the current data source path, and make sure you can sign in to the data source outside Excel.

Solution 1Recommended

Edit the Power Query Data Source Credentials in Excel 365

Use this first when Power Query shows an invalid user ID or password for an existing data source but the connection settings have not changed.

Stored credentials may become stale or corrupted even when the workbook or source settings appear unchanged. Re-entering them refreshes the authentication token that Power Query uses for the connection.

1
Open Data Source Settings

In Excel 365, go to Data > Get Data > Data Source Settings.

2
Select the affected source

Select the connection that returns the error and choose Edit Permissions.

3
Edit credentials

Open the Credentials tab, then select Edit or Sign in as different user and re-enter the correct user ID and password.

4
Confirm and refresh

Save the credential changes, return to the query, and select Refresh to test the data import.

Edit the Power Query Data Source Credentials in Excel 365
Expected result: Power Query imports the data without the invalid user ID or password message after the updated credentials are accepted.
Free Microsoft Office alternative

Use WPS Office as a Free Alternative for Data Import When Excel Power Query Errors Persist

If the Excel 365 Power Query credential error keeps blocking data imports, WPS Office is a free, lightweight Microsoft Office alternative with familiar spreadsheet tools, built-in data import options for everyday reporting, and strong .xlsx compatibility for a smooth switch.

Avoid recurring Power Query credential failures with a clean, integrated WPS data import workflowOpen and save .xlsx and other Microsoft Excel files without losing data or formattingFree, lightweight suite with a familiar ribbon-style interface that runs on WindowsWork across WPS Spreadsheets, Writer, and Presentation without leaving the interfaceNo mandatory subscription for essential spreadsheet, document, and PDF tools
QA img-9

Frequently Asked Questions

Why does Power Query keep saying invalid user ID or password even though I did not change anything?

Excel stores separate data source credentials, and these can expire or become corrupted. Open Data > Get Data > Data Source Settings, select the source, and re-enter the credentials under Edit Permissions.

How do I clear cached Power Query credentials in Excel 365?

Go to Data > Get Data > Data Source Settings, select the affected source, and choose Clear Permissions. You can also open Edit Permissions and change the credentials on the Credentials tab.

Will recreating the connection in a new workbook fix the invalid user ID or password error?

It often helps. Open a blank workbook, use Data > Get Data to connect to the same source, and sign in with fresh credentials. If the new workbook works, the original workbook may have a corrupted query or credential cache.

Does WPS Office have Power Query?

WPS Office does not include the full Microsoft Power Query add-in, but WPS Spreadsheets opens Excel workbooks and supports data import and connection features for common data sources.

What should I check if the Power Query error continues after resetting credentials?

Verify the data source path and permissions, update Microsoft 365 and Windows, test in a new Windows user profile, and if possible test the same connection on another device.