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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Saurabh_Naik
New Member

An error happened while reading data from the provider

38543296-CD04-4B86-B70D-3ABF8D004684.jpeg

I faced erroe while connecting to Sql server from Power BI. I faced error as below:

"An error happed while reading data from the provider: the type initializer for microsoft.data.sqlclient.sninativemethodwrapper threw an exception"

I recently updated SSMS and reboot it. Please assist me to resolve this issue as soon as possible.

3 REPLIES 3
hrauch_
Frequent Visitor

 

Are there actual instructions to get around this somewhere? The git threads copy/pasted here by @amitchandak  are just conversations with no clear solution which is more confusing than helpful.

cjpcman01
Frequent Visitor

I am having the same issue with all SQL connections since the Nov 2020 update, I did uninstall and relaod OCT 2020 version and the refresh works no problem, but since the files was saved under NOV 2020 and the model was "upgraded" i get many more errors, also can see the model view in OCT 2020 or save keep getting crash/unknown errors.

amitchandak
Super User
Super User

@Saurabh_Naik , refer these two, if they can help

https://github.com/dotnet/SqlClient/issues/468

https://github.com/dotnet/SqlClient/issues/361

 

or log an issue : https://community.powerbi.com/t5/Issues/idb-p/Issues

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.