Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
a-vdarute
Regular Visitor

Gateway connection error

Unable to update connection credentials. The on-premises data gateway's service account failed to impersonate the user.
 Kindly help me resolve this error. 

2 ACCEPTED SOLUTIONS

Hii @a-vdarute 

 

If the error still persists after assigning permissions and restarting the gateway, the most likely cause is a Kerberos / impersonation mismatch between the gateway and the data source. As a next step, try switching the data source to use explicit credentials (for example, SQL authentication instead of Windows), or configure Kerberos delegation (double-hop) correctly if Windows authentication is required. Also verify that the same gateway is mapped to the dataset, the service account password hasn’t changed, and re-add the data source in the gateway cluster before updating credentials again.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

Hi @a-vdarute,

 

Thank you for the response and clarification. Since your machine is Azure AD joined only, windows authentication is not supported in this configuration. Because windows authentication requires a proper Active Directory domain join to enable user impersonation.

  • Switch the data source to use sql authentication instead of windows authentication. This does not require domain join and will work correctly with your current setup.

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

9 REPLIES 9
a-vdarute
Regular Visitor

Hi,
 My machine is Azure AD Joined only (via Intune) – NOT domain joined. now i have NT SERVICE\PBIEgwService account, Gateway is running under NT SERVICE\PBIEgwService, when I tried to connect dataset with windows authentication(with my work account) it is throughing bellow error : 

Unable to create connection for the following reason: There was an error in the data gateway.

Details: Partner_wise_dashboard: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
kindly suggest a solution.
 

 

Hi @a-vdarute,

 

Thank you for the response and clarification. Since your machine is Azure AD joined only, windows authentication is not supported in this configuration. Because windows authentication requires a proper Active Directory domain join to enable user impersonation.

  • Switch the data source to use sql authentication instead of windows authentication. This does not require domain join and will work correctly with your current setup.

 

Thanks and regards,

Anjan Kumar Chippa

Hi,

After following your instructions, everything appears to be in order except for one issue: when I attempt to add the data source to the gateway, I am now encountering a new error,


A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Hi @a-vdarute,

 

This error is now a network connectivity issue between the gateway machine and sql server, not an authentication issue. Please verify the following:

  • Ensure the correct server and instance name is being used
  • Make sure sql server allows remote connections
  • TCP/IP is enabled in Sql Server Configuration Manager
  • Verify firewall rules allow traffic on port 1433 or the configured sql port
  • If using a named instance, ensure the sql server browser service is running

The gateway machine must be able to connect to the sql server outside of the power bi first. Once the connectivity works, then adding the data source in the gateway will succeed.

 

Thanks and regards,

Anjan Kumar Chippa

v-achippa
Community Support
Community Support

Hi @a-vdarute,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @rohit1991 for the prompt response. 

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @a-vdarute,

 

We wanted to kindly follow up to check if the solution provided by the user for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

rohit1991
Super User
Super User

Hii @a-vdarute 

 

This error usually occurs when the on-premises data gateway service account does not have permission to impersonate the user credentials used for the data source. Make sure the gateway is running under a domain service account (not Local System), that this account has Log on as a service rights, and that the authentication method matches the data source (for example, use SQL authentication if Kerberos delegation isn’t configured). After updating permissions, restart the gateway service and re-enter the credentials in the Power BI Service.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Thank you for your response, @rohit1991 .

I have followed all the steps you suggested, including granting the required permissions to the gateway service account and restarting the On‑premises Data Gateway service. However, I am still encountering the same error.

Hii @a-vdarute 

 

If the error still persists after assigning permissions and restarting the gateway, the most likely cause is a Kerberos / impersonation mismatch between the gateway and the data source. As a next step, try switching the data source to use explicit credentials (for example, SQL authentication instead of Windows), or configure Kerberos delegation (double-hop) correctly if Windows authentication is required. Also verify that the same gateway is mapped to the dataset, the service account password hasn’t changed, and re-add the data source in the gateway cluster before updating credentials again.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors