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
Not able to get right Sheets from huge xlsx files #1010
Comments
You're likely hitting the node / V8 256MB string limit. You can check by renaming to .ZIP, extracting, and checking the size of the constituent Can you open the file, save as XLSB or XLS, and see if the file is processed? |
I've tried with XLSB and got:
...Then I've tried with XLS and have again 0 rows counting.
Console:
I'll try to convert to CSV file and split it out in other files, maybe it should work. |
I would suggest you to increase max used memory for node.js via this env variable: |
Just fyi... What I end up doing was converting the excel files into csv and importing directly with MySQL. Thanks for the help and sorry for keeping this open for so long. |
I'm trying to get the data from a huge file (800k rows) and put it into database via lambda (AWS).
To do that I'm getting the xlsx file from S3 as a buffer and reading it.
The issue is that for
workbook.Sheets
I should see[ 'main', 'sales', 'Sheet1' ]
, right?Then I try to get the number of rows (already converted to JSON) like this:
Where the parameter
data
is thejson_sheet
defined in the function above.So for
data.length
(number of rows) I get 0 instead of 800k+.And, of course, I'm unable to get
data[0]
which isundefined
.PS.: the file has 57.3mb -- Not sure if it's the cause.
Thanks in advance for help.
The text was updated successfully, but these errors were encountered: