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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
tek2hd
New Member

bad IL range

im getting a message of "DataSource.Error: An error happened while reading data from the provider: 'Bad IL range.'" on a project that up till today had been working just fine. I havent made any changes to any of the querys but none of them work now. 

3 REPLIES 3
tek2hd
New Member

Ive reinstalled everything from the mysql connector to doing a fresh install of power bi desktop and i still cannot get past this error can anyone please help me out with this?

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @tek2hd,

 

Base on my research, the error is thrown when an assembly is corrupted, and there could be many and various reasons for this to happen: viruses, hardware failure, software bugs or a wrong action taken by the user.

 

We can't do much about that, if the problem persists I would suggest you to reinstall the newest version of Power BI Desktop or .NET Framework to see if it works.Smiley Happy

 

Regards

MarcelBeug
Community Champion
Community Champion

Although this would become too technical for me: I just searched for the error message and got a lot of hits, including https://blogs.msdn.microsoft.com/carmelop/2013/06/12/system-badimageformatexception-bad-il-range-wha...

 

So I would expect the cause of the error being somewehere at your data source and not in the queries.

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.