sheetjs drop rows when there are blank rows in .numbers files #3009

Closed
opened 2023-10-11 20:42:08 +00:00 by relaxslow · 6 comments

Hi, team
there is big issue when I reading a .numbers with blank rows, sheetjs drops nearly half of the rows
here is the code
` for (let sheetName of workbook.SheetNames) {
// var csv = XLSX.utils.sheet_to_csv(workbook.Sheets[sheetName]);
// await Bun.write("./tools/testExportCSV.csv",csv)
const jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], {
header: 1,
blankrows: false,
raw: false
});

}
`
there should be 5853 available , but actually I got 2973

Hi, team there is big issue when I reading a .numbers with blank rows, sheetjs drops nearly half of the rows here is the code ` for (let sheetName of workbook.SheetNames) { // var csv = XLSX.utils.sheet_to_csv(workbook.Sheets[sheetName]); // await Bun.write("./tools/testExportCSV.csv",csv) const jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], { header: 1, blankrows: false, raw: false }); } ` there should be 5853 available , but actually I got 2973
Owner

Thanks for sharing! We'll take a closer look. Do you know what program last touched the file (e.g. icloud.com web interface, Apple Numbers on the desktop, Apple Numbers for Mac)? Also, just to confirm, are you expecting alternating rows of data? It looks like the even rows are blank in Numbers 13.1

Thanks for sharing! We'll take a closer look. Do you know what program last touched the file (e.g. icloud.com web interface, Apple Numbers on the desktop, Apple Numbers for Mac)? Also, just to confirm, are you expecting alternating rows of data? It looks like the even rows are blank in Numbers 13.1
Author

yes , I edit the file on mac numbers. No , I don't want the blank rows . I receive this file from client , and I hope to speed up my processing using javascript. so I wrote a program. I have many of them , so it is not practical to correct the file one by one

yes , I edit the file on mac numbers. No , I don't want the blank rows . I receive this file from client , and I hope to speed up my processing using javascript. so I wrote a program. I have many of them , so it is not practical to correct the file one by one
Author

so , I am counting on you ,bro. can you unveil when it could be fixed

so , I am counting on you ,bro. can you unveil when it could be fixed
Author

any update on this , thanks

any update on this , thanks
sheetjs referenced this issue from a commit 2023-10-16 03:04:07 +00:00
Author

Hi, seems that the issue has been fixed , but why I still got error result. when shall I use the fixed version of sheetjs

Hi, seems that the issue has been fixed , but why I still got error result. when shall I use the fixed version of sheetjs
Owner

We have to make a new release. If you want a tarball now, join the chat and we can make a pre-release package available for you.

We have to make a new release. If you want a tarball now, join [the chat](https://sheetjs.com/chat) and we can make a pre-release package available for you.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#3009
No description provided.