catamphetamine / read-excel-file

Read *.xlsx files in a browser or Node.js. Parse to JSON with a strict schema.

Home Page:https://catamphetamine.gitlab.io/read-excel-file/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"sharedstrings.xml" file not found in the *.xlsx file

KzooDrew opened this issue · comments

The plugin is throwing the following error: "sharedstrings.xml" file not found in the *.xlsx file.

The Excel file I am using contains a single column of 6-digit numbers for the cell values, no formatting and no formulas. It's about as basic as it gets. However, other such files are able to be parsed.

I can send the file in question via PM if you let me know where you want me to send it.

How was the file created? In what editor?

I'd say that xl/sharedStrings.xml file is required and if it's missing then it's assumed to be a bug.

Random Numbers.xlsx

I see I can attach files. This is the file that is causing the error. The user that generated this file has gone home for the day so I will have to get back to you on the Office version and how it was created tomorrow. (we use two different versions of office)

Also, this is the stack trace of the error:

Uncaught (in promise) Error: "sharedStrings.xml" file not found in the .xlsx file
n /Scripts/plugins/ReadExcelFile/ReadExcelFile.min.js:9
default/Scripts/plugins/ReadExcelFile/ReadExcelFile.min.js:9
default /Scripts/plugins/ReadExcelFile/ReadExcelFile.min.js:9
default /Scripts/plugins/ReadExcelFile/ReadExcelFile.min.js:9
promise callback
readXlsxFile</e.default Scripts/plugins/ReadExcelFile/ReadExcelFile.min.js:9

I should also point out that I am using the stand-alone CDN version of the plugin:
https://unpkg.com/read-excel-file@4.x/bundle/read-excel-file.min.js

@KzooDrew Ok, seems like sharedStrings.xml is actually not required to exist if the file has no strings, only numbers.
I've removed the sharedStrings.xml requirement in the latest version.

published read-excel-file@4.0.7