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.

Reviewed November 22, 20263 English video walkthroughsMicrosoft-backed checks

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.

Click to play · no video load upfront
Actual YouTube thumbnail: Guy in a Cube SQL Server gateway connectivity troubleshooting

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.

Actual YouTube thumbnail: Guy in a Cube on-premises data gateway configuration for Microsoft Fabric

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.

Actual YouTube thumbnail: Guy in a Cube gateway performance counter and logging walkthrough

Log diagnostics · Guy in a Cube (US)

Find slow requests and performance evidence

Explains gateway performance counters and query timing in logs. Older recording, but the diagnostic principle helps with timeout and intermittent failures.

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 report

Reported 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 report

Unresolved 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 discussion

Jump 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

1 · Capture the evidence

In Power BI service, find the semantic model → Refresh history → failed operation → details. Record UTC time, error, table, request/activity ID.

2 · Check the correct gateway

Open Manage connections and gateways. Confirm the intended standard cluster/member status and installed version. Avoid changing shared settings yet.

3 · Check source and mapping

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 to save before changing anything: a diagnostic copy of your model, the gateway/connection mapping, the last successful refresh, which sources are affected, and any other reports using the same gateway or connection.
What you seeWhat it does NOT proveBest next check
Gateway shows OnlineThat its SQL Server, folder or other source is accessibleTest the exact source from the host
Source connection test succeedsThat every query, optional connector setting, SSO user or full refresh worksRun the failing workload and inspect its details
Desktop refresh succeedsThat the gateway host has the same driver, DSN, path and credentialsCompare host identity and service mapping
Only some scheduled jobs failThat the whole gateway is downCheck member logs, concurrent load and query-specific errors

Advertisements

Understand the two paths a gateway must traverse

Power BI service

Semantic model and its authorized data-source connection mapping.

Cloud → gateway

Gateway Windows service initiates outbound Microsoft cloud and Azure Relay communication.

Gateway → source

Host DNS, source port, share/database, driver, TLS and source permissions.

Refresh/model

Power Query evaluates data and the semantic model processes rows using workload-specific identities.

No inbound relay port is required: Microsoft’s standard gateway uses outbound communication. Keep the source-side firewall path separate: the gateway host may still need access to SQL TCP ports, a file server, or an HTTPS endpoint. See Microsoft’s current communication requirements.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Never open inbound Azure Relay ports or disable the firewall to make a green light. Don’t edit gateway configuration files based on decade-old videos unless Microsoft currently documents that specific change. Transport changes, restarts and upgrades can interrupt every model using this cluster.

References: Network ports and HTTPS · General gateway troubleshooting · Gateway updating.

Back to my error

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
What success looks like: every required source is mapped to a valid authorized connection, and a full refresh completes. Do not delete a shared connection merely because a gateway option is missing; other models may rely on it.

Microsoft: Add or remove a gateway data source · Scheduled refresh and exact matching.

Back to my error

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
One connection test does not validate a refresh. After source access works, repeat the actual query with the same model connection and execution identity. Successful access to a different test database is not proof that the production source works.

Microsoft: Gateway data source troubleshooting · ODBC connector.

Back to my error

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.

  1. Verify the exact connection being updated and supported authentication method. Stored credentials may be SQL, Windows, Basic, OAuth, or another connector-specific method.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Nuance from Microsoft’s documentation: certain connectors need optional parameters that a Power BI gateway’s connection test may omit. If the actual refresh succeeds and you only see this test warning, do not destroy a working connection to silence it. If the actual refresh fails, investigate its underlying details.

Microsoft: Credential troubleshooting · Gateway SSO.

Back to my error

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 detailsFollow this path
Login failed / OAuth / token expiredCredential or SSO branch
Host not found / timeout while connecting to databaseGateway-to-source branch
Gateway connection unreachable / relayOffline and network branch
DataFormat.Error, column missing, Expression.ErrorPower Query and OLE DB/ODBC article
Memory limit, long query, cancellationTimeout and resource branch
No useful inner messageGateway 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.

Don’t guess from someone else’s forum thread: the same code appears in unrelated environments. A connection repair that worked for one user’s database does not prove the cause is identical for your dataset.

Microsoft: Unknown gateway errors and Event Logs.

Back to my error

6. Intermittent failures, missing driver or inconsistent gateway cluster

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Back to my error

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Do not arbitrarily increase gateway worker memory, reboot a shared gateway, remove data rows, or upgrade Fabric capacity on a generic timeout. Change the resource or query setting only after measuring the bottleneck and arranging rollback.

Microsoft: Scheduled refresh · Refresh troubleshooting.

Back to my error

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.

  1. 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.
  2. Inspect the full installer/registration message. Check the selected work/school tenant/cloud, host proxy/network test and interactive sign-in permissions.
  3. 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.
  4. 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.
  5. 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.

Back to my error

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.

  1. Power BI gateway-specific troubleshooting — UnknownError, database access, credentials and mappings.
  2. General on-premises gateway troubleshooting — offline, logs and common errors.
  3. Gateway cloud communication — Azure Relay, HTTPS, proxy and network ports.
  4. Connection definitions and permissions — data-source matching, Users and Owner roles.
  5. Supported monthly gateway releases.
  6. Gateway updates and sign-in changes.
  7. On-premises gateway app — diagnostics, exports, network tests and HTTPS mode.
  8. Gateway log file reference.
  9. Scheduled refresh — disabled schedules and refresh settings.
  10. Gateway single sign-on overview.

Continue with the relevant Power BI guide

By A.J. · UltimateInfoGuide: Practical Technology. Clear Answers. Useful Tools. This guide is independent of Microsoft; no actual customer gateway or private source was accessed. Videos load only after a click. Published Article and Breadcrumb schema should remain managed by Rank Math.
Scroll to Top