web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / When trying to connect...
Power Apps
Answered

When trying to connect to Dataverse: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

I have weeks developing reports in Power Bi connected to a dataverse environment with Direct Query in Power Bi. However, I have several days now trying to connect and I´m getting the following SQL Connection error:

 

DataSource.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)
Details:
DataSourceKind=CommonDataService
DataSourcePath=myenvironment
Message=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)

 

lguzmanc433_0-1627401083606.png

 

I´m currently connecting from a Virtual Machine, due to credentialing purposes on the organization. However other members from the organization that are able to connect to the report without the VDI, are being able to connect.

 

Any ideas on how to workaround this problem?

 

Kind regards!

I have the same question (0)
  • vikasp Profile Picture
    Microsoft Employee on at

    Hi, This error most likely is caused due to the connection from your client unable to reach the server. If others in the organization are able to connect to the endpoint but unable to connect in this specific case, recommend troubleshooting any networking issues/firewall policies on the client machine/VM. Please ensure the ports 1433/5558 are open and also ensure you are able to telnet to the organization as mentioned in the troubleshooting steps here - https://docs.microsoft.com/en-us/powerapps/developer/data-platform/dataverse-sql-query#establish-a-telnet-session-to-the-tds-service-listener.

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @lguzmanc433, did you get this resolved? I know this dates from a while but to use the Dataverse Connector in Power BI, you'll need the TDS endpoint enabled, otherwise you'll get that error.
    More info: https://learn.microsoft.com/power-apps/maker/data-platform/data-platform-powerbi-connector?tabs=Dataverse#prerequisites 
    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 955

#2
11manish Profile Picture

11manish 652

#3
Valantis Profile Picture

Valantis 626

Last 30 days Overall leaderboard