Wrong behavior when reading a specific XLSX file #3023
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#3023
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
I'm trying to parse a specific XLSX file, but when use the
readFile
orread
functions, these cells seems to be empty. Even with the spreadsheet editors displaying that they exists. If I save again the same spreadsheet, it works as expected.Attached a
xlsx
file that has this wrong behavior.The code that we're using to read the file is:
This behavior happens in both versions:
0.18.5
and0.20.0
.https://docs.sheetjs.com/docs/miscellany/errors#worksheet-only-includes-one-row-of-data
You can pass the option
nodim: true
to theread
orreadFile
functions, or you can use the workaround shown in the docs page.I already tried both solutions as I see in issues aroung GitHub and here. None of them works.
The
!ref
property already comes with the right range of how much rows and columns has on my document.NodeJS test against the attached file:
test.js
:Result (click to show)