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
cbhoffm1
Advocate I
Advocate I

Excel Export File from a Table is Corrupt

When I am exporting data from a published report in my workspace I am getting an error message upon opening the file:

Problem Opening File.pngRecovery Error.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The .CSV option works fine but any export to excel either summarized or underlying data throws the 2 above erros when I open the files.  I have tried multiple machines and workspaces and I'm still getting the 2 errors.  Is there a setting that needs to be changed in order to prevent the error from appearing?  This will look very bad on client facing reports.

2 ACCEPTED SOLUTIONS
cbhoffm1
Advocate I
Advocate I

I did some more testing on this and identified it is one record in particular that is causing the issue.  I'm not sure if it's the <blank> value in one column or the resulting Divide by 0 in another but I would not think this is enough to corrupt the workbook.  I'll let you know what I find.

View solution in original post

cbhoffm1
Advocate I
Advocate I

Upon further testing, the issue was the Divide by 0 error.  If there are any errors in the data the Excel file will throw the corrupt error instead of just treating those errors as text.  Using the replace errors function in Power Query resolved the issue and the Excel export is fine now.

View solution in original post

6 REPLIES 6
cbhoffm1
Advocate I
Advocate I

Upon further testing, the issue was the Divide by 0 error.  If there are any errors in the data the Excel file will throw the corrupt error instead of just treating those errors as text.  Using the replace errors function in Power Query resolved the issue and the Excel export is fine now.

cbhoffm1
Advocate I
Advocate I

I did some more testing on this and identified it is one record in particular that is causing the issue.  I'm not sure if it's the <blank> value in one column or the resulting Divide by 0 in another but I would not think this is enough to corrupt the workbook.  I'll let you know what I find.

cbhoffm1
Advocate I
Advocate I

Hi Jimmy,

 

This issue only appears for Excel exports from Power BI.  It does not appear to happen with any other files.

 

Regards,
Chris

cbhoffm1
Advocate I
Advocate I

 

Hi Jimmy,

 

I am using Office 365 to open the file.  When I tried excel online, I am getting the below error message.  When I click Yes, I get the same 2 messages as in my original post.

 

Excel Error.PNG

 

Thanks,
Chris

 

Hi cbhoffm1,

 

This issue seems more related to O365, I would recommend you to post your issue to O365 forum.

 

Regards,

Jimmy Tao

v-yuta-msft
Community Support
Community Support

Hi cbhoffm1,

 

I have made a test on your issue but couldn't reproduce it. Excel file can be opened correctly on my side. What's your office version? Can you open the .xlsx file on excel web?

 

Regards,

Jimmy Tao

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