Custom percentage formatting unable to parse workbook #3232
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3232
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?
Hi! And thank you for this awesome library!
We have used the library as viewer in combination with canvas-grid. Lately we started getting excel files(.xlsx) that has custom percentage formatting that sheetjs is unable to parse.
Excel says the cell number format is: "0.0 %" and the error message from sheetjs on parsing is "unrecognized character % in 0.0\ %".
I did confirm it works if I change the formatting to standard percentage formatting but as the files are coming from 3rd party I'm unable to make them to use different format.
Custom percentage formattingto Custom percentage formatting unable to parse workbookThanks for reporting! We will revisit number formatting after the next release.
Please share any other affected formats. To simplify the search, open the demo in https://docs.sheetjs.com/docs/csf/features/nf#number-format-strings and select your file. For each unique number format used in your file, it will print the format, a JSON-encoded version of the format string, and a cell address you can inspect.
I used the tool to fetch list of the formats in that actual workbook. I needed to change "0.0\ %" to "0.0%" to get parsing to work.
Wondering if its enough to check the "\ " in this line: xlsx.js#L1061