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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

SQL Timeout Error

Hello community,

The dataset refresh if failing continuously due to SQL timeout error.However if refreshed manually the same dataset is getting refreshed correctly.
The error message is as follows :-

Microsoft SQL: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

vtkorlekar_0-1701942836153.png

Can anyone suggest what am I missing here and what needs to be done to ensure smoothe scheduled refresh ?
Thanks.

 

1 REPLY 1
ibarrau
Super User
Super User

Hi. By default SQL Server has a 10 minute window for a single query/table to refresh. You can increase that time at Power Bi Desktop. Open the file.pbix go to Power Query editor (Transform data menu). Check the first step of the biggest table or all the tables involved (as you wish). You can click the settings icon next to the source step and open de advanced settings or check the code turning on the formula bar.

The docs specify there is a commandTimeout window that you can increase:

https://learn.microsoft.com/en-us/powerquery-m/sql-database

The code would be something like:

= Sql.Database(Server_Name, Database_Name , [CommandTimeout = #duration(0,0,20,0)] )

For example that would be a duration of 20 minutes.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors