Power BI / On-premises data gateway troubleshooting
Power BI Gateway Error? Find the Fix
Gateway offline, DM_GWPipeline_UnknownError, invalid credentials, or refresh failing only in the Power BI service? Match your exact symptom to the right test before reinstalling or changing security.
See the settings before changing them
Power BI gateway fixes: video walkthroughs
English-language demonstrations for data engineers and administrators. Real YouTube thumbnails; tap to load a player. Each video covers a specific scenario, not every gateway error.

Closest technical fix · Guy in a Cube (US) · English
Power BI gateway cannot reach a SQL Server named instance
Adam Saxton walks through a real gateway-to-SQL Server connectivity problem and how he isolates the network/source failure. Recorded in 2016, so follow the current Microsoft UI instructions below rather than copying old menus.

2024 setup demo · Guy in a Cube (US)
Set up and verify the right gateway connection
Shows standard gateway installation and connection fundamentals in modern Fabric. Best when the gateway or data source is not mapped correctly.
Video accuracy: Only the first video focuses on a concrete gateway connection failure, not your exact error code. The second demonstrates configuration; the third explains performance diagnosis. None is advertised as a universal fix. Video interfaces can differ from November 2026 Power BI. The full written instructions below work without YouTube.
User-confirmed fix · Microsoft Community
Gateway offline behind a restrictive proxy
In an older real case, the team reported the gateway began working after changing its communication path to HTTPS in an environment allowing only 80/443. Today, use the gateway app’s supported HTTPS option with network-admin approval.
Read the original reportReported fix · Microsoft Community
Gateway-related dataflow refresh fixed by upgrade
One community participant reported that updating their gateway resolved a refresh issue. It is useful evidence when an unsupported or old gateway build is involved, not proof that upgrades fix every error.
Read the upgrade reportUnresolved follow-up · Microsoft Community
Gateway goes online, then offline again
A user reported a gateway that returned online after a restart but failed again about 20 minutes later. The thread is marked solved, but the user did not confirm a lasting repair. Repeated failure needs logs—not repeated blind restarts.
See the full discussionJump to your exact failure
What does Power BI show?
Choose by detailed symptom or error code. An error code is a starting point—not evidence for resetting credentials or reinstalling software.
First three checks: isolate the failing layer in five minutes
In Power BI service, find the semantic model → Refresh history → failed operation → details. Record UTC time, error, table, request/activity ID.
Open Manage connections and gateways. Confirm the intended standard cluster/member status and installed version. Avoid changing shared settings yet.
Inspect Gateway and cloud connections for the semantic model. Test a minimal data-source read from an eligible gateway host using the correct principal.
If the whole gateway cluster is offline, focus on cloud connectivity. If the gateway is online but only one data source fails, test the source/network/credentials. If all host reads succeed yet the model has no connection, compare mappings and user permissions. A test as an administrator does not validate a report user’s SSO path.
| What you see | What it does NOT prove | Best next check |
|---|---|---|
| Gateway shows Online | That its SQL Server, folder or other source is accessible | Test the exact source from the host |
| Source connection test succeeds | That every query, optional connector setting, SSO user or full refresh works | Run the failing workload and inspect its details |
| Desktop refresh succeeds | That the gateway host has the same driver, DSN, path and credentials | Compare host identity and service mapping |
| Only some scheduled jobs fail | That the whole gateway is down | Check member logs, concurrent load and query-specific errors |
Advertisements
Understand the two paths a gateway must traverse
Semantic model and its authorized data-source connection mapping.
Gateway Windows service initiates outbound Microsoft cloud and Azure Relay communication.
Host DNS, source port, share/database, driver, TLS and source permissions.
Power Query evaluates data and the semantic model processes rows using workload-specific identities.
Which account is really being used?
Gateway administrator
Manages the gateway cluster. This role alone does not prove a model can use a particular connection or that the database permits the refresh.
Connection User / Owner
Controls who can bind/use the connection in the service. It is separate from the login sent to the data source.
Stored source credential
Used for the source operation in applicable non-SSO configurations; ensure it can read the intended database or files.
Windows service / SSO user
Gateway’s Windows service identity can affect proxy and local permissions. Configured SSO may use a different end-user or delegated identity.
Source: Gateway connection users and credentials and Microsoft SSO overview.
1. Fix “gateway offline”, “unreachable” or relay failures
Applies when: the standard gateway cluster/member is reported offline, or service-to-gateway communication is the failure. It is not a general fix for a SQL login or a missing model mapping.
- Check the real Windows host. Is it running, awake, network-connected and using the gateway cluster expected by the model? In Windows Services, inspect the On-premises data gateway service and its event logs. A stopped service needs investigation, not a cycle of blind restarts.
- Check the installed gateway build. Microsoft actively supports the last six monthly releases. Review the supported monthly updates against every cluster member; update through change management if your release is unsupported or relevant fixes apply. Older builds may also encounter 2026 sign-in compatibility changes.
- Run the gateway app’s Diagnostics → Network ports test. If it fails, use Open last completed test results to identify the blocked FQDN/port and send the result to the network administrator. A browser test from your laptop is not an equivalent test of the gateway Windows service.
- Inspect proxy and network identity. Check the service account’s proxy access, DNS, TLS trust and documented Microsoft cloud endpoints. A custom outbound proxy allowing only HTTPS may call for the supported gateway app Network → HTTPS mode, if approved and appropriate.
- Retest end to end. After an approved change (or coordinated restart when evidence points to a stuck service), rerun the network test and the originally failed refresh. If the cluster is now Online but the data source still fails, go to the host-to-source path.
References: Network ports and HTTPS · General gateway troubleshooting · Gateway updating.
Advertisements
2. Gateway online but missing from semantic model settings
Often the gateway itself is healthy. Microsoft documents exact server/database matching and permission to use each gateway connection as conditions for a model to select it.
- Open your model in the Power BI service: Workspace → Semantic model → Settings → Gateway and cloud connections. Inspect each listed source. Microsoft may vary some menu wording by workspace and connector.
- In Manage connections and gateways, find the standard gateway cluster and the intended on-premises connection. Compare the exact source details from Desktop: for SQL Server, server (including host, instance or IP) and database names must match. A server alias and its IP are not interchangeable names for gateway matching.
- Inspect all on-premises sources in the semantic model—not just the primary SQL connection. Parameters, combined files, referenced queries, and mixed on-prem/cloud models can add dependencies.
- Have the connection Owner check Manage users. The model owner or account binding the semantic model must have the appropriate connection permission. Being a gateway cluster administrator is not the same as being allowed to bind a particular connection.
- Select the authorized matching connection for every source, apply the mapping and run the full refresh. If the connection is still not offered, check connector support and the right tenant/region with the administrator.
Microsoft: Add or remove a gateway data source · Scheduled refresh and exact matching.
3. “We reached the gateway, but it can’t access the data source”
This is a gateway-to-source problem. The code may be DM_GWPipeline_Gateway_DataSourceAccessError. A successful Azure Relay ports test won’t prove the database or file share is reachable.
- Identify the actual source kind and connection: SQL Server, Oracle, an SMB folder, web endpoint, ODBC, Excel/Access provider or another supported connector. Copy only sanitized host, instance and database names to your private incident record.
- Have the server owner run a minimal authorized source read on an eligible gateway member with the intended source principal and equivalent provider settings. Test source reachability, not just internet access. For a folder, confirm a UNC path and permissions usable by the execution identity; a user’s mapped drive letter may not be visible to the service.
- If a SQL Server named instance is involved, check DNS, the actual TCP endpoint, dynamic/static port design and any named-instance discovery dependencies with the SQL/network admin. The Guy in a Cube video above is particularly useful for this branch.
- For ODBC or Oracle, verify a supported 64-bit provider and matching driver/DSN on all eligible gateway members. For certificate errors, repair endpoint names or trust chains rather than disabling TLS validation.
- If the host can reach the server but reports Cannot open database or Login failed, check the database name and that login’s access to that database—not just the existence of a network route.
Microsoft: Gateway data source troubleshooting · ODBC connector.
4. Credential, OAuth, SSO or certificate error
Look for DMTS_UpdateClusterDatasourceCredentialsErrorCode, Invalid connection credentials, or an underlying provider login failure. A credential-update wrapper is not proof the only issue is an expired password.
- Verify the exact connection being updated and supported authentication method. Stored credentials may be SQL, Windows, Basic, OAuth, or another connector-specific method.
- Expand details to identify whether the failure is authentication, network, data permission, connector configuration or certificate trust. If SQL says Cannot open database … requested by the login, investigate that database’s permission for the real source account.
- If OAuth tokens are expired, the authorized connection owner should renew through the supported Power BI connection UI. Don’t copy secrets into forum posts or change Windows service identities as a generic fix.
- For SSO, identify the actual configured SSO mechanism and principal (Kerberos, Microsoft Entra, Analysis Services EffectiveUserName, etc.). These are different paths. Test a permitted non-admin viewer, not only a dataset owner’s stored-credential connection test.
- For TLS/certificate complaints, involve the source and network administrators to validate the certificate chain, hostname and trust requirements. Avoid “ignore privacy levels” or “trust any certificate” workarounds.
Microsoft: Credential troubleshooting · Gateway SSO.
5. Fix DM_GWPipeline_UnknownError by reading the inner error
Microsoft documents DM_GWPipeline_UnknownError as an unspecific pipeline wrapper. Don’t assume firewall, storage mode, missing gateway software or a corrupted report until you see the cause beneath it.
| Underlying details | Follow this path |
|---|---|
Login failed / OAuth / token expired | Credential or SSO branch |
| Host not found / timeout while connecting to database | Gateway-to-source branch |
| Gateway connection unreachable / relay | Offline and network branch |
DataFormat.Error, column missing, Expression.Error | Power Query and OLE DB/ODBC article |
| Memory limit, long query, cancellation | Timeout and resource branch |
| No useful inner message | Gateway logs + Windows events + UTC request ID |
In the service, check the failed semantic model’s Refresh history details. Export gateway diagnostics from its host and review Windows Event Viewer → Applications and Services Logs → On-premises data gateway Service. Correlate the UTC time and request ID. An error on a separate canceled query may be a downstream symptom, not the initial failure.
Microsoft: Unknown gateway errors and Event Logs.
6. Intermittent failures, missing driver or inconsistent gateway cluster
- Identify which member handled the failed operation from the exported gateway diagnostics and compare it with the last successful run. A cluster can have different host environments even when its members appear online.
- Compare gateway releases. Microsoft supports the last six releases; align cluster members to compatible supported versions through a planned rollout. Read release notes before upgrading because providers can have version-specific compatibility issues.
- Compare the supported driver versions, 64-bit DSNs, local file shares, certificates, proxy configuration and source network access on every member eligible to execute that query.
- Have the owner test repeatedly and correlate each attempt to the host. One successful retry is not proof of resolving an intermittent host issue. Temporary member isolation must account for shared capacity and availability.
- For recent Oracle gateway-provider problems, assess official connector and gateway release guidance before changing undocumented flight switches or global config files. A community workaround from a different release can introduce other instability.
Microsoft: Cluster/member troubleshooting · Supported releases.
7. Refresh timeout, canceled operation or disabled schedule
A slow refresh may originate in the source query, gateway worker resources, shared capacity, service timeout or the semantic model—not necessarily in cloud connectivity.
- Compare refresh duration and data volume against the last successful run. Capture the first meaningful error and UTC time from Refresh history, then correlate gateway duration logs and source execution logs.
- Check source blocking/query plans, inefficient joins, failing folding, transfer volume, concurrent gateway workloads, memory and CPU. The Guy in a Cube performance walkthrough demonstrates useful log/counter concepts.
- For timeouts, confirm the specific limit from the connector and Power BI service capacity documentation. Increasing an arbitrary timeout is not a reliable fix for a resource limit or a failed query.
- Where appropriate, optimize source views, filter data early, preserve query folding, use approved incremental refresh or stagger heavy jobs. Benchmark and reconcile counts before accepting a reduction in loaded data.
- If scheduled refresh is disabled, fix the error first and then restore it. Microsoft says a schedule may be deactivated after four consecutive failures or certain unrecoverable configuration errors. A successful manual refresh does not automatically prove the next scheduled cycle will succeed.
Microsoft: Scheduled refresh · Refresh troubleshooting.
8. Installation, sign-in or registration fails
Installation and registration use a different troubleshooting path from running a semantic model. Don’t reinstall SQL providers to fix an Azure sign-in problem.
- Confirm this is the standard on-premises data gateway, not personal mode or the Fabric virtual network data gateway. Follow Microsoft’s current installation prerequisites.
- Inspect the full installer/registration message. Check the selected work/school tenant/cloud, host proxy/network test and interactive sign-in permissions.
- Check gateway version compatibility with the Microsoft identity sign-in changes described in 2026. An older installer may be incompatible even if the network seems healthy.
- If recovering or joining a cluster, let the authorized administrator use the correct cluster and protected recovery key. Do not create another production gateway with a new name as an unexplained workaround.
- After registration, confirm the resulting cluster is the intended one, then test data-source mapping and one approved refresh.
Microsoft: Install standard gateway · Update gateway and sign-in changes.
Where to find the logs that actually explain a gateway failure
From an approved Windows gateway host, open On-premises data gateway app → Diagnostics → Export logs. Save the ZIP in a restricted support location; logs can contain hostnames, query text, source paths and account identifiers.
Gateway service logs
Use gateway errors, information and network records to correlate connection attempts and service status. Exact log filenames and categories are documented by Microsoft.
Windows Event Viewer
Inspect Applications and Services Logs → On-premises data gateway Service near the same UTC timestamp, especially when the service repeatedly goes offline.
Source system logs
Have the database/network owner find login failures, blocking, endpoint changes or query timeouts. The gateway may only report a wrapper of the source’s real error.
Power BI service details
Collect semantic model name, actual operation, activity/request ID, UTC time and refresh-history details. Never include passwords, tokens or customer rows in public reports.
Additional/verbose logging can increase disk usage and expose more details. Enable it only under the gateway administrator’s approved diagnostic process, then switch it off after gathering evidence.
Microsoft: Use the gateway app · Configure log files.
Verify the fix before declaring the outage resolved
After a targeted change, repeat the exact original failure—not just the network ports test or a manual admin login.
Checklist items are browser-local and reset when the page reloads. No user data is transmitted by these checkboxes.
Still failing? Copy a useful incident report
Save time with the evidence a gateway admin or Microsoft Support engineer can actually correlate. Redact hostnames or identity details where public sharing is not authorized; always use private support channels for sensitive information.
Power BI standard gateway - private incident report
First failure time (UTC) and last known success:
Activity ID / Request ID (private channel):
Exact wrapper code and underlying message:
Semantic model and operation: Import / DirectQuery / SSO:
Gateway cluster and member that handled the run:
Gateway versions on eligible members:
Connector type and driver/DSN versions:
Gateway status and Network ports test result:
Model-to-gateway source mapping: pass / fail / not checked:
Source identity type (never provide password/token):
Host-to-source read test result:
Desktop full refresh / Service full refresh result:
Gateway logs / Windows events / source logs at failure:
Recent proxy, DNS, cert, provider, data or password change:
Exact approved action tried and observed result:
Row-count / business-total validation:
Impact on other models and rollback plan:
Owner for next action:
This page does not ask you to upload a PBIX, connection string or gateway logs. Use Microsoft’s gateway troubleshooting guide and your organization’s support route when root cause remains unknown.
Power BI gateway error FAQs
What does DM_GWPipeline_UnknownError mean?
It is a generic gateway pipeline error. Inspect the detailed provider/source message and correlate gateway and Windows logs. The same wrapper can cover authentication, source reachability, query problems or other errors; no single repair applies to all.
Why is my gateway online but not available for a semantic model?
Verify all on-premises sources are mapped, exact server and database identities match the Desktop definitions, connector support is appropriate and the account binding the model has permission to use each connection. Gateway administration is different from permission to bind a connection.
Does Power BI gateway need inbound firewall ports?
No inbound ports are needed for the gateway’s cloud relay. It opens outbound cloud connections. Source-side traffic from the gateway host to SQL or a file server still needs the correct private network and source ports. Follow the current Microsoft network requirements.
Should I restart or reinstall the Power BI gateway?
Not automatically. Check status, logs, member version, network test and the underlying error first. A controlled restart may be appropriate for an unresponsive service, but it can interrupt shared workloads and a recurrent failure requires diagnosis.
Why does a credential connection test fail when refresh works?
Microsoft documents connector scenarios where the test omits optional parameters used in the actual refresh. If full refresh succeeds and data is valid, don’t break a working connection just to remove that particular test warning. Actual failed refreshes still need troubleshooting.
Does Power BI Pro require Premium to schedule gateway refresh?
No. Power BI Pro supports scheduled refresh within its applicable licensing and refresh limits; Premium is not a universal prerequisite for using an on-premises data gateway. Verify your workspace’s current capacity and licensing restrictions separately.
What if gateway status keeps switching between online and offline?
Check gateway Windows service restarts, proxy/DNS disruptions, cluster-member status, supported version and gateway/network logs at the precise times. A restart that provides temporary relief does not prove a permanent fix. Test for recurrence and dependent refreshes.
Were these fixes tested on my company’s gateway?
No. This independent article was reviewed against Microsoft documentation and linked demonstrations on November 22, 2026. No customer gateway, database, SSO session or semantic model was accessed. Test one approved change at a time in your own environment.
Official Microsoft references and review scope
Last documentation review: November 22, 2026. Microsoft product behavior, connection labels and supported builds can change; current Microsoft documentation takes precedence. The videos are learning resources, not proof that each fix resolves every gateway failure. User-reported cases are not Microsoft-certified repairs.
- Power BI gateway-specific troubleshooting — UnknownError, database access, credentials and mappings.
- General on-premises gateway troubleshooting — offline, logs and common errors.
- Gateway cloud communication — Azure Relay, HTTPS, proxy and network ports.
- Connection definitions and permissions — data-source matching, Users and Owner roles.
- Supported monthly gateway releases.
- Gateway updates and sign-in changes.
- On-premises gateway app — diagnostics, exports, network tests and HTTPS mode.
- Gateway log file reference.
- Scheduled refresh — disabled schedules and refresh settings.
- Gateway single sign-on overview.



