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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
TameshDoobay
Frequent Visitor

PowerBI not refreshing online with SQL connection

Hi,

In PowerBI Desktop, my report works and when refreshed, it displays updated info. My datasource is SQL.

I've created a gateway and things seem to be connected fine there, I don't see any issues with it in the settings.

But when I publish and try to refresh on the online PowerBI, it doesn't update. When I check the lineage, I see this issue.

 

Something went wrong

There was an error when processing the data in the dataset.

Please try again later or contact support. If you contact support, please provide these details.Hide details
  • Data source error{"error":{"code":"DM_GWPipeline_Gateway_ImpersonationError","pbi.error":{"code":"DM_GWPipeline_Gateway_ImpersonationError","parameters":{},"details":[],"exceptionCulprit":1}}} Table: employees.
  • Cluster URIWABI-WEST-US-D-PRIMARY-redirect.analysis.windows.net
  • Activity ID85048699-741e-4fe6-a403-90d815913671
  • Request ID7b4c6ffd-8d7d-183a-5718-3159dada69cc
  • Time2024-06-06 15:37:45Z

     

    I'm not sure what's causing this issue?

2 ACCEPTED SOLUTIONS
Kaviraj11
Super User
Super User

Hi,

 

 Here are some steps you can take to troubleshoot this issue:

  1. Check the Authentication Method: Make sure the account being used matches the Authentication Method. If you’re using Windows Authentication, ensure that the gateway is installed on a machine that’s joined to the same domain as the server running the SQL Server instance.

  2. Test the Credentials: Use SQL Server Management Studio (SSMS) to connect to your SQL Server using the same account and credentials. If there are no issues in SSMS, the problem might be with the data gateway.

  3. Check the Gateway Connection: If you’re using an on-premise data gateway, ensure that it’s installed correctly and that it can connect to your data source.

  4. Inspect the Data Source Settings: In some cases, the issue might be resolved by adjusting the settings of the data source in Power BI.

 

Solved: DM_GWPipeline_Gateway_ImpersonationError on refres... - Microsoft Fabric Community




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

Anonymous
Not applicable

Hi,@TameshDoobay Hello,@blopez11@Kaviraj11

thanks for your concern about this issue.

Your answesr are excellent!
And I would like to share some additional solutions below

According to your description, you are having a problem configuring the gateway connection on the power BI service.

Since you said that you are connecting to SQL Server as your data source.

So I guess you are using import/Direct Query connection mode.

Let me walk you through the process of setting up the gateway connection (since you said you have the option DirectQuery with SSO, I assume you are using the DirectQuery connection mode to connect to the database SQL Server)

Here is how I created the report, published it to the service and set up the gateway connection.

vjtianmsft_0-1718185204497.pngvjtianmsft_1-1718185215353.png

You need to make sure that you have created the gateway and that it is online.

You need to log in to the “On-premises data gateway ” application (log in to your gateway using your account on your Power BI service).

vjtianmsft_2-1718185235737.png

Please check if the gateway is online on service

vjtianmsft_3-1718185249842.pngvjtianmsft_4-1718185258034.png

Create a gateway connection:

vjtianmsft_5-1718185310452.pngvjtianmsft_6-1718185321168.png

The Signgle sign-on feature is optional, and when it is turned on, users can use a single account for multiple authentications without having to repeatedly change authentication information (but this feature has nothing to do with your current gateway connection authentication errors and can be ignored)

Here is the official documentation for this feature.
Test single sign-on (SSO) configuration - Power BI | Microsoft Learn

vjtianmsft_7-1718185346992.pngvjtianmsft_8-1718185360790.png

The gateway connection was set up successfully (note here that you must ensure successful authentication when setting up authentication for the gateway connection)

vjtianmsft_9-1718185385894.png

vjtianmsft_10-1718185395213.png

The account that is authenticated by windows here is also the valid user that logs into SQL Server Management Studio (SSMS).

The valid user who logs into SQL Server Management Studio (SSMS), usually a domain user

You have to make sure that the account is successfully authenticated (in fact I think this is where the problem lies: authentication failure).

semantic model refreshes successfully

 

 

Here are some directions for troubleshooting:

1. Check that the authentication is performed correctly and successfully.
Use Dataset owner’s security context(UPN) for Refresh-based Reports (Public Preview) | Microso...

vjtianmsft_11-1718185430067.png

2. Through the local gateway application to check: export the gateway connection log, which saves a lot of gateway information, including the cause of the error report

vjtianmsft_12-1718185447005.png

Here is the official documentation on the subject, which we hope you will find helpful
Manage a SQL Server data source - Power BI | Microsoft Learn

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,@TameshDoobay Hello,@blopez11@Kaviraj11

thanks for your concern about this issue.

Your answesr are excellent!
And I would like to share some additional solutions below

According to your description, you are having a problem configuring the gateway connection on the power BI service.

Since you said that you are connecting to SQL Server as your data source.

So I guess you are using import/Direct Query connection mode.

Let me walk you through the process of setting up the gateway connection (since you said you have the option DirectQuery with SSO, I assume you are using the DirectQuery connection mode to connect to the database SQL Server)

Here is how I created the report, published it to the service and set up the gateway connection.

vjtianmsft_0-1718185204497.pngvjtianmsft_1-1718185215353.png

You need to make sure that you have created the gateway and that it is online.

You need to log in to the “On-premises data gateway ” application (log in to your gateway using your account on your Power BI service).

vjtianmsft_2-1718185235737.png

Please check if the gateway is online on service

vjtianmsft_3-1718185249842.pngvjtianmsft_4-1718185258034.png

Create a gateway connection:

vjtianmsft_5-1718185310452.pngvjtianmsft_6-1718185321168.png

The Signgle sign-on feature is optional, and when it is turned on, users can use a single account for multiple authentications without having to repeatedly change authentication information (but this feature has nothing to do with your current gateway connection authentication errors and can be ignored)

Here is the official documentation for this feature.
Test single sign-on (SSO) configuration - Power BI | Microsoft Learn

vjtianmsft_7-1718185346992.pngvjtianmsft_8-1718185360790.png

The gateway connection was set up successfully (note here that you must ensure successful authentication when setting up authentication for the gateway connection)

vjtianmsft_9-1718185385894.png

vjtianmsft_10-1718185395213.png

The account that is authenticated by windows here is also the valid user that logs into SQL Server Management Studio (SSMS).

The valid user who logs into SQL Server Management Studio (SSMS), usually a domain user

You have to make sure that the account is successfully authenticated (in fact I think this is where the problem lies: authentication failure).

semantic model refreshes successfully

 

 

Here are some directions for troubleshooting:

1. Check that the authentication is performed correctly and successfully.
Use Dataset owner’s security context(UPN) for Refresh-based Reports (Public Preview) | Microso...

vjtianmsft_11-1718185430067.png

2. Through the local gateway application to check: export the gateway connection log, which saves a lot of gateway information, including the cause of the error report

vjtianmsft_12-1718185447005.png

Here is the official documentation on the subject, which we hope you will find helpful
Manage a SQL Server data source - Power BI | Microsoft Learn

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

blopez11
Super User
Super User

How is the gateway connection setup?  Is it DirectQuery with SSO?

Kaviraj11
Super User
Super User

Hi,

 

 Here are some steps you can take to troubleshoot this issue:

  1. Check the Authentication Method: Make sure the account being used matches the Authentication Method. If you’re using Windows Authentication, ensure that the gateway is installed on a machine that’s joined to the same domain as the server running the SQL Server instance.

  2. Test the Credentials: Use SQL Server Management Studio (SSMS) to connect to your SQL Server using the same account and credentials. If there are no issues in SSMS, the problem might be with the data gateway.

  3. Check the Gateway Connection: If you’re using an on-premise data gateway, ensure that it’s installed correctly and that it can connect to your data source.

  4. Inspect the Data Source Settings: In some cases, the issue might be resolved by adjusting the settings of the data source in Power BI.

 

Solved: DM_GWPipeline_Gateway_ImpersonationError on refres... - Microsoft Fabric Community




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.