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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
mike_asplin
Helper V
Helper V

Unable to load Excel file because we couldnt understand its format error?

Having spend days battling to get my model to refrsh because of some weird Odata eror i am now faced with this? Desktop modle refreshes fine with no issue. All the excel files are stored on sharepoint. This error messgae gives me no clue which file is an issue or what to do about it. Any help appreciated

 

Refresh completed with warnings.
Data source error: DataFormat.Error: We were unable to load this Excel file because we couldn't understand its format. The document cannot be opened because there is an invalid part with an unexpected content type. [Part Uri=/customXml/itemProps4.xml], [Content Type=application/xml], [Expected Content Type=application/vnd.openxmlformats-officedocument.customXmlProperties+xml].. Microsoft.Data.Mashup.ErrorCode = 10942. . The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. The warning is saying that one of the files has an issue. I have read about this before. It's like the excel file wasn't saved properly in xlsx. Most users solve it opening the excel files from sharepoint at their excel desktop and save it again checking the format is xlsx.

You can read something similar in this post: https://community.fabric.microsoft.com/t5/Service/DataFormat-Error-We-were-unable-to-load-this-Excel...

Or this one: https://community.fabric.microsoft.com/t5/Service/We-were-unable-to-load-this-Excel-file-because-we-...

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

3 REPLIES 3
krishnakanth240
Resident Rockstar
Resident Rockstar

Hi @mike_asplin 

Reason might be one of Excel files in SharePoint is corrupted or not a valid .xlsx structure even if it opens in Excel

As Desktop it works where Power BI Service it fails on invalid internal XML parts (customXml)

So, in Power Query you can temporarily filter files one by one or add a column which will flag the file that has error

    ```M

    try Excel.Workbook([Content]) otherwise "Error"

    ```

Ensure file is not in .xls format and it shall be of .xlsx format and not partially corrupted from the upload

All files were xlsx and they all work fine in the desktop so dont think thi would have helped. i opened and resaved every file and seems ot have fixed it so didnt try your suggestion. Thanks 

ibarrau
Super User
Super User

Hi. The warning is saying that one of the files has an issue. I have read about this before. It's like the excel file wasn't saved properly in xlsx. Most users solve it opening the excel files from sharepoint at their excel desktop and save it again checking the format is xlsx.

You can read something similar in this post: https://community.fabric.microsoft.com/t5/Service/DataFormat-Error-We-were-unable-to-load-this-Excel...

Or this one: https://community.fabric.microsoft.com/t5/Service/We-were-unable-to-load-this-Excel-file-because-we-...

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.