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
jkouloukas
Frequent Visitor

Cannot Load Data Model SQL Server Error 40

Hello all,

 

I am having issues connecting to Power BI Desktop. Everytime I try to open a PBIX file, an error message reads "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)" Once I close that out, I am able to see the data model but I am unable to see the visualizations. I have looked online to find problems like this, but I have not found a solution that has worked. 

1 REPLY 1
d_gosbell
Super User
Super User

This does not sound like an issue with Power BI as such but it sounds like there is a permissions or network issue with the data source for the file you are attempting to open.

 

You would get this sort of error if you were trying to open an existing PBIX file that has been setup with a direct query data source and you either do not have permissions to the data source or the data source is not accessible (this could happen if you are working from home and you've opened the pbix from onedrive, but are not connected to your work network). You might need to request assistance from you DBA or IT team to help resolve this.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.