Error connecting Excel or PowerBI to SQL Server (System.EnterpriseServices)

JKith 0 Reputation points
2023-08-22T20:05:19.5966667+00:00

I've setup a SQL server on my local network, and I can connect to it no problem with SSMS. But when I try to connect to it via Excel or PowerBI, I get the following error:

Details: "An error happened while reading data from the provider: 'Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)'"

In researching this error, some of the solutions proposed were:
1: Start Excel or PowerBI as admin
2: Reinstall .NetFramework

I tried both, and it doesn't work. Would someone be able to help?

Thank you in advance.

Microsoft 365 and Office | Excel | For business | Windows
SQL Server | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LiHongMSFT-4306 31,616 Reputation points
    2023-08-23T03:06:30.21+00:00

    Hi @JKith

    The issue might from inside pbix file, and it was due to the automatic changes applied in the report data source settings.

    Cleared all the permissions for the data sources that had this problem (some of them were with "Windows" credentials and "Organizational" privacy level). Then, set the Credentials to Windows again with the current user authentication and privacy level to "None", all the Credentials encrypted.

    Hope this helps :)


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.