Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi, I am trying to point a report (from my desktop) to 2k19 sql server on a win2k19 as well, when I try to apply any changes, I get the following error:
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)'
From same desktop, using PowerBI desktop I access another sql2k17 without any issue
After googling, I came th came across some threads suggesting installing SSMS on the server to check, it runs fine.
Any help would be appreciated
We had another reoccurence of this issue. We found that most users were able to resolve by re-installing .NET Framework, but for one user it wasn't solved until they deleted and re-added the data source credential in Power BI Desktop. The next time we run into this, that's where we are starting!
Found a possible solution for this. I was running into the problem when using a domain [service] account to authenticate to an MSSQL 2019 server and the user was different from the one I was currently logged in as.
It appears that this is a problem with application impersionation and how PowerBI handles it. Had to use an administrator account to make the changes.
Start > Control Pannel > Administrative tools > Local security policies > Expand local policies > Select User Right Assignment.
Added my logged in user to the following policies:
May have to reboot after making the changes.
I have exactly falled into this scenerio. I will need to use another window domain account to login MS SQL SERVER 2019 in my power query and it gave same 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)'"
I tried your method to change the local security policies by adding my domain account to "Impersonate a client after authentication" and "Obtain an impersonation token for another user in the same session", but problem still persist.
Any idea/suggestion?
Hi @eliassal,
Well actually it does has something to do with PowerBI.
Run PowerBI as Administrator and it will solve the problem.
Probably you are trying to connect with a seperate user that has rights on the machine.
When you connect with your own login everything is oke but somehow with impersonation you need some extra rights. Hopefully this is also a solution in your situation.
If this was a solution to the problem please set the item to solved. In that way it can help others that run to the same problems.
Stefan Mulder
Hi....
Thank you so much.....
It has worked for me...
I have tried it for last 3 days.....
I got the solutions......
Thank you so much
@eliassal A user here had the same issue. Another user had no problems with the same account, pointing to a software issue. This article recommended re-installing .NET Framework which cleared the error for the user.
Hi @eliassal ,
You can connect to SQL Server in Power BI Desktop using SQL authentication credentials. Choose Database option in the following screenshot, then enter your username and password to connect to SQL Server. See more details: Connect Power BI to SQL Server.
You may try to upgrade the Power BI Desktop to the latest version 2.81.5831.821.
In addition, you may find error message from here, go to File-> Options and Settings ->Options ->Diagnostics.
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You are correct, I used sql credentials and connection went through, I will try to download and setup the new version
Thanks for your help
I forgot to mentiuon that the version is already 2.81.5831.821 May 2020
Hi @eliassal ,
If you still have this issue for Power BI, you'd better create a support ticket in Power BI Support , Scroll down and click "CREATE SUPPORT TICKET", or go to Issue forum to get further help.
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Issue resolved by using sql credentials but still I cant with windows credentials, I will do
@eliassal are you able to connect to sql server from other tools except Power BI?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yes, from SSMS from same desktop as well as C# projects
@eliassal so it is nothing to do with Power BI, I think it is the issue with the machine that it cannot connect to the SQL server, try on a different machine and see if it works.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
As I said, from same desktop
Yes, I can connect PowerBI to another sql2k17 as well as other versions of sqL on other windows version.
I can connect through SSMS to the sql2019 (which has the issue) as well as other servers
I can access sql 2019 from C# projects
I am not sure that it is a problem with the desktop, I have the impression that PowerBI is not able to talk to SQL2019
OK, how this can be debugged or which route to follow to unearth the issue and see where the peobleme lies?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
84 | |
66 | |
49 |
User | Count |
---|---|
130 | |
110 | |
93 | |
70 | |
67 |