Skip to content

Shared strings table not found in recent XLSX file #328

@jeff-emanuel

Description

@jeff-emanuel

I'm using version v0.10.4, and I get the error shown below reading data from xlsx file written from the Excel for Mac version 16.103.1 (25111624). I see in code for sst_load! that it checks for the shared string table by (line 76-77 in v0.10.4 and line 109-110 in the current 9a01450 master):

    relationship_type = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"
    if has_relationship_by_type(workbook, relationship_type)

But my xlsx file has relationship type "http://purl.oclc.org/ooxml/officeDocument/relationships/sharedStrings" instead.

ERROR: Shared Strings Table not found for this workbook.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] sst_load!(workbook::XLSX.Workbook)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/sst.jl:95
[3] sst_unformatted_string
@ ~/.julia/packages/XLSX/vzApD/src/sst.jl:132 [inlined]
[4] sst_unformatted_string
@ ~/.julia/packages/XLSX/vzApD/src/sst.jl:143 [inlined]
[5] sst_unformatted_string
@ ~/.julia/packages/XLSX/vzApD/src/sst.jl:144 [inlined]
[6] sst_unformatted_string
@ ~/.julia/packages/XLSX/vzApD/src/sst.jl:145 [inlined]
[7] getdata(ws::XLSX.Worksheet, cell::XLSX.Cell)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/cell.jl:181
[8] getdata
@ ~/.julia/packages/XLSX/vzApD/src/worksheet.jl:91 [inlined]
[9] getdata(xl::XLSX.XLSXFile, ref::XLSX.SheetCellRef)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/workbook.jl:109
[10] getdata(xl::XLSX.XLSXFile, s::String)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/workbook.jl:124
[11] top-level scope
@ REPL[124]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions