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.
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.