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.

Error when connecting PBI web to Azure MSSQL

We have some PowerBI reports running against Azure MSSQL databases in Direct Query mode. The reports were working fine, and will still work fine in PowerBI Desktop. However, when uploading to the Web, some of those reports (the more complex ones with multiple widgets) have suddenly started displaying the following 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: TCP Provider, error: 0 - A connection attempt failed
because the connected party did not properly respond after a period of time,
orestablished connection failed because connected host has failed to respond.);A
connection attempt failed because the connected party did not properly respond after
a period of time, or established connection failed because connected host has
failed to respond. The exception was raised by the IDbConnection interface. Please
try again later or contact support.

PBI Desktop works fine with the same datasource settings. Connecting to the database from VS Code using the mssql extension also works.

 

The only solution we've found is to stop all processes that modify the database, clone it, drop/rename the old one, and rename the new one with the same name as the old one. Needless to say, this is not scalable.

 

Thanks.

Status: Needs Info
Comments
v-yuezhe-msft
Employee

@mcamou_actyx ,

When you create a new same database, does the error still occurs when you have multiple processes modifying the database?

It seems that multiple modify processes occupy the Azure SQL database , which impacts the connection to Azure SQL database in Power BI Service. You may hit the limitations of Azure SQL database described in the articles below.

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-resource-limits-database-server
https://blogs.technet.microsoft.com/latam/2015/06/01/how-to-deal-with-the-limits-of-azure-sql-databa...

Regards,
Lydia

v-yuezhe-msft
Employee
Status changed to: Needs Info
 
Anonymous
Not applicable

Hello Lydia,

 

There is a single process updating the database. Also, this seems to somehow happen after some time of being stable. We have an S2 instance with 50 DTUs. Looking at the resource utilization graph we are very occasionally seeing sharp peaks of 90-100% but 95% of the time it's just idling along below 10%. Also, it seems that once this starts happening we can't get out of it even when the DB is just idling.

Anonymous
Not applicable

@v-yuezhe-msftdo you have any other ideas? (forgot to ping you in my last reply) Can we somehow get an actual support case started? The only link I see is to this forum.

v-yuezhe-msft
Employee

@Anonymous ,

You can open a ticket in Power BI support site.
Support Ticket.gif

Regards,
Lydia