Skip to content
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

Excel data type inlineStr is not supported #123

Closed
cmcaine opened this issue Nov 14, 2019 · 8 comments
Closed

Excel data type inlineStr is not supported #123

cmcaine opened this issue Nov 14, 2019 · 8 comments
Assignees

Comments

@cmcaine
Copy link

cmcaine commented Nov 14, 2019

I can't access the data of most cells because they are "inlineStr"

julia> sheets[1][1,1]
missing

julia> sheets[1][1,2]
ERROR: Excel data type inlineStr is not supported.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] getdata(::XLSX.Worksheet, ::XLSX.Cell) at /home/colin/.julia/packages/XLSX/LFpq7/src/cell.jl:103
 [3] getdata at /home/colin/.julia/packages/XLSX/LFpq7/src/worksheet.jl:77 [inlined]
 [4] getdata(::XLSX.Worksheet, ::Int64, ::Int64) at /home/colin/.julia/packages/XLSX/LFpq7/src/worksheet.jl:78
 [5] getindex(::XLSX.Worksheet, ::Int64, ::Int64) at /home/colin/.julia/packages/XLSX/LFpq7/src/worksheet.jl:176
 [6] top-level scope at REPL[14]:1

Can't share the sheet because it's confidential and resaving a non-confidential example in the software I have available encodes it differently.

@felipenoris
Copy link
Owner

@cmcaine , a few of these assertions I put because I couldn't find an instance or scenario where MS Excel generates this kind of tags.

How this excel file is created? Which software is used to create the file?

@felipenoris
Copy link
Owner

Maybe the performance issue is related to inlineStr. But can you give details on the size of the file, and how much time it takes to load on MS Excel and ExcelReaders.jl?

@cmcaine
Copy link
Author

cmcaine commented Nov 14, 2019

The file is generated by EXWA https://www.elcomsoft.co.uk/exwa.html

Really they should just generate a csv, but whatever.

ExcelReaders takes about 1m per sheet, which makes it about twice as fast.

Libreoffice loads it in 26s:

$ time libreoffice confidential.xlsx 
libreoffice   26.10s user 2.65s system 121% cpu 23.716 total

Don't have access to MS Excel.

@felipenoris
Copy link
Owner

@cmcaine I see. Is it possible to generate a file with random data with EXWA that triggers this issue?

@cmcaine
Copy link
Author

cmcaine commented Nov 14, 2019 via email

@cmcaine
Copy link
Author

cmcaine commented Nov 17, 2019

Here's an example excel file with inline strings, not generated by EXWA, though. Maybe helpful?

TestExcel.xlsx

Found here: https://www.grapecity.com/forums/silverlight-edition/read-generated-excel-with-

@felipenoris felipenoris self-assigned this Nov 20, 2019
@felipenoris
Copy link
Owner

@cmcaine , yes I can work with that. Thanks!

@felipenoris
Copy link
Owner

Closed by 80df442.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants