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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
R_A_H_U_L
New Member

Getting Connection error while connecting SQL Server Database to power bi.

Getting this Error:

We encountered an error while trying to connect:

Details: "Loading assembly file 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed for data source type 'SQL'"

 

Please help me understand this error & resolve it.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @R_A_H_U_L ,

Thanks for lbendlin's reply!
And @R_A_H_U_L , you can try this steps which may help:
Sometimes, running Power BI Desktop with administrative privileges can resolve this issue.
Ensure that the .NET Framework is properly installed and up to date. You can repair or reinstall the .NET Framework if necessary.
Make sure that the System.EnterpriseServices assembly is up to date. You can check for updates or reinstall the assembly if needed.
If you previously connected to the data source using different credentials, try clearing all connection permissions and restarting Power BI.

And maybe these links will help you:
Solved: Unable to Connect to SQL Server - Microsoft Fabric Community
Error Unable de connect sql with Power BI - Microsoft Fabric Community

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
cordycep
New Member

Have same error, are you using a gateway?

Anonymous
Not applicable

Hi @R_A_H_U_L ,

Thanks for lbendlin's reply!
And @R_A_H_U_L , you can try this steps which may help:
Sometimes, running Power BI Desktop with administrative privileges can resolve this issue.
Ensure that the .NET Framework is properly installed and up to date. You can repair or reinstall the .NET Framework if necessary.
Make sure that the System.EnterpriseServices assembly is up to date. You can check for updates or reinstall the assembly if needed.
If you previously connected to the data source using different credentials, try clearing all connection permissions and restarting Power BI.

And maybe these links will help you:
Solved: Unable to Connect to SQL Server - Microsoft Fabric Community
Error Unable de connect sql with Power BI - Microsoft Fabric Community

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Running Power Bi with Administrative Privileges worked for me. I might have used some different data source credential so I cleared all connection permission & started fresh. It worked! Thanks!

lbendlin
Super User
Super User

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.