-
Notifications
You must be signed in to change notification settings - Fork 807
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
System.IndexOutOfRangeException when loading an xlsx with pivot table #651
Comments
v0.90 should throw a meaningful |
thanks for checking the issue. However I think it should be possible to load an excel with missing references. Excel can do that without any warning. If you reference a different workbook, it might work if it is next to the one you open. I need to update the workbook and ignore the "currently" missing reference. Do you see any chance I can do that? |
Sorry, that's not possible in the foreseeable future. We don't exactly have an entire Office development team here. |
I am reopening this since @BillyFromAHill has provided a fix. |
Add a test workbook for loading pivot table with missing references (ClosedXML#651)
Add a test workbook for loading pivot table with missing references (ClosedXML#651)
Add a test workbook for loading pivot table with missing references (#651)
Read and complete the full issue template
Do you want to request a feature or report a bug?
Version of ClosedXML
0.87.1
also tested with 0.90
What is the current behavior?
A crash happens if i load the attached file (direclty within XLWorkbook constructor)
What is the expected behavior or new feature?
At least it shall load the excel and ignore the invalid data if there are any (excel itself says everything is fine)
Did this work in previous versions of our tool? Which versions?
Yes, different ones -> not related to this issue
Reproducibility
We loaded the xlsx directly from a memory stream in our application:
using (var memoryStream = new MemoryStream(report))
var book = new XLWorkbook(memoryStream);
But it also happens if you just open it by filename:
test.xlsx
Code to reproduce problem:
The text was updated successfully, but these errors were encountered: