Power Query Problems

Fix Excel Power Query Not Using Saved ODBC DSN Credentials

John WilsonJohn Wilson Oct 7, 2026 870 views

Question details

The user needs to stop Excel Power Query from repeatedly prompting for credentials when connecting to a database via an ODBC System DSN that already has saved credentials.

How to Fix Excel Power Query Not Using Saved ODBC DSN Credentials
Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to connect to a database (such as DB2) using Power Query with an ODBC System DSN.
Observed behavior
Excel Power Query ignores the credentials saved in the ODBC DSN, which work fine in other applications, and repeatedly requests the user to enter them.
Before you start

Verify that your ODBC System DSN is configured correctly in the Windows ODBC Data Source Administrator and that the credentials are valid by testing the connection outside of Excel.

Solution 1Recommended

Contact Microsoft 365 Support for Escalation

Since this is a known behavior where Power Query fails to pass through saved DSN credentials, opening a service request with Microsoft Support is the official resolution path.

Power Query sometimes handles authentication independently for security reasons, which can cause it to ignore system-level ODBC DSN passwords. As this requires deep investigation into tenant or application-specific behavior, Microsoft Support is equipped to assist.

1
Access Admin Center

Log in to the Microsoft 365 admin center using your administrator credentials.

2
Navigate to Support

Click on 'Support' in the left-hand navigation menu, then select 'New service request'.

3
Submit the Ticket

Describe your issue in detail. Be sure to mention that the DB2 ODBC System DSN contains saved credentials that successfully work in Access and Crystal Reports, but fail exclusively in Power Query.

Contact Microsoft 365 Support for Escalation
Free Microsoft Office alternative

Try WPS Office for Your Data and Spreadsheet Needs

If you are frustrated by complex Excel data connection issues like Power Query credential prompts, consider trying WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet application capable of handling complex data without the hefty price tag.

  1. 1. Download and Install: Visit the official WPS website and download WPS Office for free.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheet and easily open your existing Microsoft Excel files with full format compatibility.
  3. 3. Manage Your Data: Use familiar formulas, pivot tables, and data sorting tools to continue your work seamlessly.
Seamlessly compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Lightweight installation with fast loading times for large datasets.Free to use with a familiar, easy-to-navigate user interface.Built-in tools for data analysis, filtering, and pivot tables.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query ignore my ODBC DSN credentials?

Power Query handles authentication independently for security and privacy reasons. It often requires credentials to be entered directly into its Data Source Settings, overriding the system-level ODBC DSN saved passwords.

Can I use a connection string instead of a DSN in Power Query?

Yes, you can bypass the DSN entirely by using a direct ODBC connection string. Go to Get Data > From Other Sources > From ODBC, and enter your driver and connection string details manually without relying on a pre-configured DSN.

How do I check if my ODBC DSN is set up correctly in Windows?

Open the 'ODBC Data Source Administrator' tool on your Windows PC, navigate to the System DSN tab, select your connection, and click 'Configure' to test the connection using your saved credentials.