Not able to read a XLSB file. Error: Unexpected record 18
See original GitHub issueI’m trying to read this XLSB file attached. I’ll add the error and the code base to reproduce locally.
https://github.com/leobastiani/sheetjs-issue-2172/raw/main/wb.xlsb https://github.com/leobastiani/sheetjs-issue-2172/
/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:20596
} catch(e) { if(opts.WTF) throw e; }
^
Error: Unexpected record 18
at ws_parse (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:14474:38)
at recordhopper (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:3517:6)
at parse_ws_bin (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:14262:2)
at parse_ws (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:15558:37)
at safe_parse_sheet (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:20570:25)
at parse_zip (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:20727:3)
at read_zip (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:20948:9)
at readSync (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:21014:69)
at Object.readFileSync (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/node_modules/xlsx/xlsx.js:21028:9)
at Object.<anonymous> (/mnt/c/Users/Leonardo/Desktop/XLSX-issue/Node/index.js:5:17)
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Unable to read xlsb file using pandas - python - Stack Overflow
First install pyxlsb and run the below code.After running the code, you'll have your data stored in df1. pip install pyxlsb import pandas...
Read more >.xlsb as an input (error) - Alteryx Community
Hi All, Is there anyone encountered this error message when using a .xlsb as an input ListOfSheets (3) Record #1: Tool #7: Target...
Read more >Personal Workbook Fails to Load - Excel Ribbon Tips
There could be a couple of different causes for this problem. The first thing you want to do is check to see if...
Read more >Office 2016 Excel - Personal.xlsb file will not open
One of our machines is running Office 2016 on Windows 7. The personal.xlsb file does not open when an instance of Excel is...
Read more >How to fix: File in Use - Personal.xlsb is locked for editing
Go into the folder above and find the file(s 1 ). · Highlight them and view their properties (Right-click -> Properties). · Then,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You generated the correct type of file this time 😃 Curiously it always generates the traditional
BrtCellError
cells. So it looks like the cases we need to cover for now are strings (18), doubles (16) and booleans (15)You exported the string
=#NUM!
and=#VALUE!
, but that’s ok we can hand-craft some samples with error values.