-
Notifications
You must be signed in to change notification settings - Fork 551
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
Deletion of a Part breaks reading other Parts through "using" method #1729
Comments
Hi @Asbjoedt, could you be more specific about which parts you mean:
When you day "read any Part after deletion of some other Parts", do you mean when you read any Part at all even the WorkbookPart? And which parts do you mean by "deletion of some other Parts"? |
When I delete these parts, I get "Specified part does not exist in the package", whenever I try to read any Part again:
|
please supply a repro so that we can try it out |
Sample spreadsheet with a data connection Use this code to remove a data connection
Then immediately use this code to read all hyperlink relationships of the same spreadsheet. It should fail with error System.InvalidOperationException: 'Specified part does not exist in the package.'
The exception will be thrown at:
|
Hi @mikeebowen, @twsouthwick |
*Describe the bug
Hello
I am upgrading from v2.20 to v.3.0.2.
The new SDK update breaks code which involves deleting/removing some Open XML Parts in my spreadsheet document.
I am applying "using" to read and write the spreadsheet document. I receive error when trying to read any Part after deletion of some other Parts, when I try to read the Part in a new "using" scope. I receive error "Specified part does not exist in the package".
Opening the spreadsheet document wit Excel or LibreOffice works perfectly fine.
Observed behavior
Open XML SDK perceives the spreadsheet document to be broken with error "Specified part does not exist in the package" whenever I try to read any Part, if some Parts have previously been deleted/removed with the "using" method. Excel renders the spreadsheet document without errors.
Expected behavior
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: