Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: Deleting worksheet causes error when opening file in Excel [15025]

$
0
0
Create a new package based on a template.
Delete one of the sheets.
Save and try to open the file in Excel.

The error is "Excel found unreadable content in <filename>. Do you want to recover the contents of this workbook?"

Here is the log file of the repairs:

```
<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">

<logFileName>error135640_09.xml</logFileName>

<summary>Errors were detected in file ''</summary>


-<removedRecords summary="Following is a list of removed records:">

<removedRecord>Removed Records: View from /xl/workbook.xml part (Workbook)</removedRecord>

</removedRecords>

</recoveryLog>
```

I suspect I know what causes it: even though the sheets are deleted, if you look at the workbook's View.SchemaNodeOrder, the deleted ones are still present.

Possibly same error as here https://epplus.codeplex.com/workitem/14516

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>