logo
search
Others

Fix Power BI On-Premises Gateway Data Source Connection Errors

John WilsonJohn Wilson Oct 23, 2026 868 views

Question details

The user is unable to establish a successful data source connection through their Power BI on-premises data gateway, despite the gateway itself showing as online.

How to Fix Power BI On-Premises Gateway Data Source Connection Errors
Product
Power BI
Device & OS
Windows
Scenario
Connecting on-premises databases to the Power BI cloud service using the on-premises data gateway.
Observed behavior
The data gateway appears online in the Power BI portal, but individual data source connections fail. Related error logs are recorded in the Windows Event Viewer.
Before you start

Ensure you have administrative access to the Windows server hosting the Power BI data gateway and the necessary permissions to read Windows Event Viewer logs.

Solution 1Recommended

Diagnose the Error using Windows Event Viewer

Identify the exact cause of the connection failure by reviewing the detailed error logs generated by the gateway service.

Because the gateway is online, the issue is likely localized to the specific data source credentials, network firewall rules blocking the database port, or driver configurations. The Windows Event Viewer provides specific error codes required to diagnose this.

1
Open Windows Event Viewer

Press the Windows key + R, type 'eventvwr.msc' into the Run dialog box, and press Enter to launch the Event Viewer.

2
Navigate to Gateway Logs

In the left-hand pane, expand 'Applications and Services Logs' and click on 'On-premises data gateway service'.

3
Locate Connection Errors

Filter or scroll through the logs to find 'Error' or 'Warning' events that match the exact timestamp of your data source connection failure.

4
Review Error Details

Click on the error event to read the description. Note any specific error codes or messages (e.g., login failed, server not found) and cross-reference them with Microsoft's official gateway troubleshooting documentation.

Diagnose the Error using Windows Event Viewer
Exporting Logs Directly: You can also export gateway logs directly from the On-premises data gateway desktop app by going to the Diagnostics tab and clicking 'Export logs'.
Free Microsoft Office alternative

Looking for a Lightweight, Free Office Alternative?

While resolving Power BI gateway configurations requires Microsoft support, managing your exported data and daily reports shouldn't be complicated. WPS Office provides a free, highly compatible suite to handle all your spreadsheets, documents, and presentations with ease.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded file and follow the on-screen prompts to complete the quick installation.
  3. 3. Analyze Your Data: Open your exported CSV or Excel data files directly in WPS Spreadsheet to begin formatting and analyzing your reports.
Seamlessly open, edit, and save Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) formats.Powerful built-in data analysis tools and PivotTables in WPS Spreadsheet for your exported BI data.Lightweight installation that runs smoothly on Windows, Mac, Linux, and mobile devices.Completely free for everyday essential office tasks, offering a familiar user interface with zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Power BI gateway show as online but the data source connection fails?

This indicates that the gateway service is successfully running and communicating with the Power BI cloud service, but it cannot reach or authenticate with the specific on-premises database. This is typically caused by incorrect database credentials, changed passwords, or local firewall rules blocking the specific database port.

Where can I find the On-premises data gateway logs?

The logs can be found in the Windows Event Viewer by navigating to 'Applications and Services Logs' > 'On-premises data gateway service'. Alternatively, you can open the local gateway app, go to the 'Diagnostics' tab, and click the 'Export logs' button to save them to a zip file.

Can I use WPS Spreadsheet to view data exported from Power BI?

Yes. When you export underlying or summarized data from a Power BI visual, it usually saves as a .csv or .xlsx file. WPS Spreadsheet is fully compatible with these formats, allowing you to easily open, filter, and analyze the exported data.