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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kinga99
Helper II
Helper II

"Object reference not set to an instance of an object" - getting data from Excel

I continuosly have the same issue with my Desktop Power BI. I get this error message regardless of what type of data I am trying to ingest to Power BI. At times I use data from SharePoint, excel files from my drive, or even desktop. The interesting part is, that if I restart my computer and launch Power BI again, everything starts working. After a couple hours, when I import new data I get the same error. Sometimes I get this error right after starting the application - there's just no telling when it will happen. To clarify: my Power BI, as well as my operating system are both 64 bits and I have the newest version of Power BI Desktop. Any suggestions?

2 REPLIES 2
JulianNoarmenn
New Member

Check if the error message contains the following excerpt: “Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified value has invalid CRLF characters”. If yes, it means there is a corrupted file. I followed these steps and it worked:

Try opening this file in the appropriate software, for example, if it is a spreadsheet, open it in Microsft Excel, and try to save it as a new file and replace the previous one.

Source: https://powerbipoint.com/2024/01/02/power-bi-fix-the-error-object-reference-not-set-to-an-instance-o... 

v-shex-msft
Community Support
Community Support

Hi @Kinga99,

In fact, it is a common exception that appears when you try to access or reference objects. It means you are trying to reference to an Object which is not initialized or initialize failed. (these exceptions can be catch and handle by programming language error but you can't do customize on each connector)

You can take a look at the following document to know more about 'null reference exceptions':

NullReferenceException

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.