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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Lexicron
Frequent Visitor

SQL data connection occasionally timing out for scheduled refreshes

Our PowerBI dataset pulls in from an SQL database. I've set the PowerBI dataset to refresh every 12 hours. Sometimes refresh is successfully, but sometimes it times out with this error:

  • Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.)

I don't know much about SQL, I just work in PowerBI. If I need to step outside of PowerBI to change some SQL settings, please talk to me like I'm 5!

 

The SQL database is setup in our Azure portal. I have access to the firewall settings. Is there anything here that helps resolve the time-out issue?

Lexicron_0-1626667913592.png

 

I do also have access to SQL Server Management Studio if I do need to use it, but I don't know how to use it, so a walkthrough would be super appreciated please. I've done a query on the table sys.database_firewall_rules but there is nothing in there.

Lexicron_0-1626673766179.png

I am using the user login highlighted in yellow, which only appears in 2 places out of a possible 3:

Lexicron_1-1626673811822.png

 

I don't have access to nor knowledge of PowerShell.

1 ACCEPTED SOLUTION
Lexicron
Frequent Visitor

Thank you @v-jingzhang !

 

The issue appears to be fixed now and they are refreshing without issues.

 

The change I did was to set the following setting to YES in Azure (in the first screenshot):

Lexicron_0-1627362924404.png

 

View solution in original post

4 REPLIES 4
Lexicron
Frequent Visitor

Thank you @v-jingzhang !

 

The issue appears to be fixed now and they are refreshing without issues.

 

The change I did was to set the following setting to YES in Azure (in the first screenshot):

Lexicron_0-1627362924404.png

 

Thank you for sharing your solution!

 

Cheers

Jing

v-jingzhang
Community Support
Community Support

Hi @Lexicron 

 

I did some more research. I think this issue might be caused by resource starvation on the DB side. Does this error occur on a specific scheduled time? During the refresh failure time, is the database at high utilization? If so, you may consider scaling up your SQL Azure instance to add more resources to it. See Scale resources - Azure SQL Database | Microsoft Docs

 

Another operation you could try is to restart your SQL Azure instance. You can simply scale the database to another tier and then scale it back. When scaling, it would restart database engine process. Sometimes restarting will solve some DB issues. See SQL SERVER - How to Restart SQL Azure Database? - SQL Authority with Pinal Dave

 

Hope this helps.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

v-jingzhang
Community Support
Community Support

Hi @Lexicron 

 

According to the information you provided, the issue seems to happen in Azure SQL database rather than Power BI. The connection to Azure SQL DB is established successfully while The wait operation timed out. 

 

I suggest that you seek help at Azure SQL Database forum.

 

Regards,
Community Support Team _ Jing

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors