Skip to content

Corruption of xlsx file #45

Description

@Te-k

Hi,

I encountered an issue today where mat2 was corrupting xlsx file then read with Excel version 2604. I can't share the file publicly but happy to share in private if it helps debugging. I checked the modifications done on Excel file, and it seems that the xml attribute sorting is what is creating the issue. The file works if I comment this part:

        #try:
        #    _sort_xml_attributes(full_path)
        #except ET.ParseError as e:  # pragma: no cover
        #    logging.error("Unable to parse %s: %s", full_path, e)
        #    return False

I am guessing the next step would be to start excluding xml files from sorting and check when it fails?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions