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

[xlsb] add data validations #1054

Merged
merged 4 commits into from
Jun 27, 2024
Merged

[xlsb] add data validations #1054

merged 4 commits into from
Jun 27, 2024

Conversation

JanMarvin
Copy link
Owner

@JanMarvin JanMarvin commented Jun 17, 2024

I have a broken test file from here: https://github.com/SheetJS/test_files/blob/master/calendar_stress_test.xlsb

Not sure why, but if I read the file as is, it reads just fine. Once the end of the file is reached, it tries to read

  • BrtFRTBegin - fine whatever
  • BrtCellBlank - it looks like something went wrong
  • BrtRowHdr - ???

and here it errors out, because there is no row. I guess the file is damaged. Because the maximal amount of rows was reached Excel might have ended the file saving prematurely and it's only able to read the file, because it does some additional checks. After all, if I read the file with Excel in MS365 and save it as xlsx first and then again as xlsb, openxlsx2 is able to read the file just fine.

Why do I write this? Because I wanted to read the data validation lists from an xlsb file, which is stored in the future record section (<extLst/>) and to be able to do this, I had to remove a hack which allowed us to read the broken file.

@JanMarvin JanMarvin merged commit 69252de into main Jun 27, 2024
9 checks passed
@JanMarvin JanMarvin deleted the xlsb_data_validation branch June 27, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant