Closed methical closed 3 years ago
I did confirm this problem in Excel Online.
I also got these errors when running docker run -it --entrypoint xlsx-validator vindvaki/xlsx-validator
:
File: /target/test.xlsx
Error: The element has unexpected child element 'http://schemas.openxmlformats.org/spreadsheetml/2006/main:definedNames'.
ContentType: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml
XPath: /x:workbook[1]
File: /target/test.xlsx
Error: The attribute 'rgb' has invalid value '000000'. The actual length according to datatype 'hexBinary' is not equal to the specified length. The expected length is 4.
ContentType: application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml
XPath: /x:styleSheet[1]/x:fonts[1]/x:font[1]/x:color[1]
I'll try to fix those reported errors and recheck in Excel Online.
I tried to create an Excel-File with two Worksheets. See this beautiful code as an example:
This creates a file which cannot be opened in Excel for Mac (16.47) or Excel 365 on Windows. It tells me the file is corrupt and no data can be recovered. However LibreOffice opens it without problems. Numbers works flawless too. Am I missing something here? I've seen user closing the worksheet, but this doesn't help. test.xlsx
I've attached corrupt Excel file for your convenience.