Cannot parse XLSX #445
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#445
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello.
I'm trying to parse a XLSX file, but the parser does not parse sheet's data. I see workbook, i see sheet's name, but 'sheets' field is empty.
I did a research and found that 'parse_ws_xml_data' generates exception:
exception on line 7495, because sstr is undefined, because 'p' contains only 't'.
I did a research of my file the cell (A1) that is causes exception has the following structure:
I tried to open the file by LibreOffice. Everything good. A1 cell does not contains anything.
I saved the opened file to other file. The new file was successfully parsed.
The first row in the new file does not have A1 cell.
How to be in this case ?
Thanks,
I I have opened a pull-request
https://github.com/protobi/js-xlsx/pull/40
This could be related to #207.
protobi#40 is merged, just on the repo and on the master branch (i.e. not in the #beta branch and not in npm).
@Ramzec ECMA-376 doesn't technically prohibit a cell like the example you gave, and since Excel appears to omit the cell I think the best course of action is to treat it as a stub cell
@flowhamster this is not related to #207 -- the other issue pertained to XML namespacing.
@Ramzec if you still have the original file, can you test against the latest version? We've reworked how stub cells work and you should not encounter that issue.