Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Not Found after deleting a worksheet #15

Closed
siddhant2408 opened this issue Aug 18, 2020 · 1 comment · Fixed by #16
Closed

File Not Found after deleting a worksheet #15

siddhant2408 opened this issue Aug 18, 2020 · 1 comment · Fixed by #16
Labels
bug Something isn't working

Comments

@siddhant2408
Copy link

test3.xlsx

Say, if we have a workbook with 3 worksheets and sheet1 is deleted, we start getting an error when opening the file using the Open method:

open file: File not found: xl/worksheets/sheet7.xml

Can we not skip the sheets ids that are not associated with a worksheet?

@dglsparsons
Copy link
Contributor

I think it's to do with extracting the contents of the excel workbook (unzipping them). Obviously the file contents hold a reference to a sheet that no longer exists, i guess the correct behaviour is for this to be gracefully handled by ignoring the error if the file is not present.

I'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants