question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to read a XLSB file. Error: Unexpected record 18

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SheetJSDevcommented, Nov 11, 2020

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)

1reaction
SheetJSDevcommented, Nov 10, 2020

You exported the string =#NUM! and =#VALUE!, but that’s ok we can hand-craft some samples with error values.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found