Skip to content

Styles not found in recent XLSX file #329

@jeff-emanuel

Description

@jeff-emanuel

This is similar to #328. See the error stacktrace below. In styles.jl the following lines (58-59 in v0.10.4 or 76-77 in 9a01450) check for this styles relationship type:

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

but my file has relationship type "http://purl.oclc.org/ooxml/officeDocument/relationships/styles" instead.

ERROR: Styles not found for this workbook.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] styles_xmlroot(workbook::XLSX.Workbook)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:68
[3] styles_cell_xf(wb::XLSX.Workbook, index::Int64)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:78
[4] styles_cell_xf_numFmtId(wb::XLSX.Workbook, index::Int64)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:85
[5] styles_is_datetime(wb::XLSX.Workbook, index::Int64)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:172
[6] styles_is_datetime(wb::XLSX.Workbook, index::String)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:194
[7] styles_is_datetime(ws::XLSX.Worksheet, index::String)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/styles.jl:197
[8] getdata(ws::XLSX.Worksheet, cell::XLSX.Cell)
@ XLSX ~/.julia/packages/XLSX/vzApD/src/cell.jl:195

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