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
Pujoni
Frequent Visitor

Error when publishing Power BI report to web version with no identified corrupted file in anywhere

I have a query connected to a Sharepoint site, in the documents part, I created a folder where I put several .xlsx files and consume them for Power BI. In Power query, I do a treatment and combine these worksheets. In the desktop version it works fine, updates and does not generate errors. When publishing to the web version, the following error appears: 

File contains corrupted data.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.

How can I solve this? I have no idea how to identify such a corrupted file, because Power Query or PBI Desk does not show an error!

Error:

Pujoni_0-1679360522500.png

File in Sharepoint:

Pujoni_1-1679360804975.png

Query in Power Query:
Pujoni_2-1679360850399.png

Status query in Power BI Web: (Last line)

Pujoni_3-1679360936053.png

 

 

 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Pujoni 

According to your description, when you publish it to Power Bi Service , it returns an error code "File contains corrupted data.. ".

For this issue , it  may happen in the Power Query Editor.

vyueyunzhmsft_0-1679535920175.png

You can open it in Power Query Editor and you need to check whether there is this error in each step, especially the step of converting the file to binary after reading SharePoint, you can check whether the file read in this step corresponds to the file in your Sharepoint, if there are some error files, you can try Filter it out.

And i search some similar error code link , i hope it may be helpful:
DataFormat.Error: File contains corrupted data. Details: - Microsoft Community

Solved: DataFormat.Error: File contains corrupted data. - Microsoft Power BI Community

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Pujoni 

According to your description, when you publish it to Power Bi Service , it returns an error code "File contains corrupted data.. ".

For this issue , it  may happen in the Power Query Editor.

vyueyunzhmsft_0-1679535920175.png

You can open it in Power Query Editor and you need to check whether there is this error in each step, especially the step of converting the file to binary after reading SharePoint, you can check whether the file read in this step corresponds to the file in your Sharepoint, if there are some error files, you can try Filter it out.

And i search some similar error code link , i hope it may be helpful:
DataFormat.Error: File contains corrupted data. Details: - Microsoft Community

Solved: DataFormat.Error: File contains corrupted data. - Microsoft Power BI Community

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the 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.

Top Solution Authors
Top Kudoed Authors