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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JohnKrisa
New Member

Refresh Error Unable to connect to Datasource

Starting on afternoon 12/16 my schedualed refreshes of dashboards started failing resulting in the Unable to connect to datasource error (below). There has been no change to the server infrastructure an according to the Power Bi Gateway manager the gateway is "Online: you are good to go" and the dataset source itself returns "Connection Successful". 

 

I have attempted to use multiple gateways on different servers but the results are the same. has anyone else had this problem?

 

Underlying error code:-2147467259
Underlying error message:Microsoft SQL: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
DM_ErrorDetailNameCode_UnderlyingHResult:-2147467259
Microsoft.Data.Mashup.ValueError.Class:11
Microsoft.Data.Mashup.ValueError.DataSourceKind:SQL
Microsoft.Data.Mashup.ValueError.DataSourcePath:Redacted
Microsoft.Data.Mashup.ValueError.ErrorCode:-2146232060
Microsoft.Data.Mashup.ValueError.Message:Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Microsoft.Data.Mashup.ValueError.Number:-2
Microsoft.Data.Mashup.ValueError.Reason:DataSource.Error
2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @JohnKrisa 

 

It’s my pleasure to answer for you.

I need to ask a few questions to judge: Is it only this data source that failed to refresh? How long has the situation lasted? How long was the refresh duration when it was normal (you can check in the dataset>> refresh history)? Is there a data source other than sql in this dataset? Is refreshing successful using 'Refresh Now' in the service? Is refreshing successful in the desktop?

You can check the solved similar case:Solved: "Microsoft SQL: Execution Timeout Expired - Microsoft Power BI Community

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

collinq
Super User
Super User

HI @JohnKrisa ,

 

The gateway software was recently released with an update.  Have you confirmed that the software on the server has been updated?  That said, the error is stating the SQL is timing out.  After confirming that the gateway software is updated, you might want to modify your query to extend the timeout time on your query(ies).

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.