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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Importing Teams dataverse tables into power BI - ErrorCode=-2146232060

Screenshot 2023-08-09 122937.pngTrying to import Teams environment dataverse tables into power BI, receiving the following error: 

 

Microsoft SQL: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

 

I have owner permissions on environment tables and Power Platform admin role (& Fabric admin role)

 

Any help would be greatly appreciated. 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

You can refer the following links to try to solve your problem:

The prerequisites of connecting to Dataverse:

Power Query Dataverse connector - Power Query | Microsoft Learn

vyiruanmsft_1-1691742054297.png

vyiruanmsft_0-1691741948242.png

 

Make sure input the correct URL:

Error message: Unable to connect (provider Named Pipes Provider, error: 40 – Could not open a connection to SQL Server)

When this error message occurs, the connector fails to connect to the TDS endpoint. This can occur when the URL used with the connector includes https:// and/or the ending /.
Remove the https:// and ending forward slash so that the URL is in the form orgname.crm.dynamics.com.

Fixed – Error – “Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server” – while trying to use Dataverse connector in Power BI – Nishant Rana's Weblog

Best Regards

Hi Rena, Thanks for your reply!

I have tried the above solution, appending the port number to the end of the environment url but getting the following issue still. 

I used blank query as the dataverse connector does not let me change the envrionment url to append the port number. 

mwayte_0-1692279566639.png

Any help would be greatly appreciated!

Anonymous
Not applicable

Hi @mwayte 

Could you please check and confirm the following info?

1.  The URL address is correct

vyiruanmsft_0-1692333239793.png

2. Has opened the port 5558, if no, you can refer the following links to get it

Configure a Windows Firewall for Database Engine Access - SQL Server | Microsoft Learn

How to Open Ports in Your Firewall: Easy Windows & Mac Guide (wikihow.com)

vyiruanmsft_1-1692333429467.png

3. Update the code of Source as below if all above information are OK

= CommonDataService.Database("xx.crm.dynamics.com,5558")

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.