cuba-platform / yarg

Yet Another Report Generator - CUBA Platform reporting engine
https://www.cuba-platform.com
Apache License 2.0
239 stars 75 forks source link

XLSX open error with template created by Office 365 #128

Closed andreysubbotin closed 4 years ago

andreysubbotin commented 4 years ago

https://www.cuba-platform.ru/discuss/t/office-365-ne-mozhet-otkryt-fajl-xlsx-sformirovannyj-reporting-addon-na-platform-7-2/4025

Environment

Description of the bug or enhancement

Related bug: plutext/docx4j#389 Project: xmldestruction (1).zip Run project. Print report: Report for entity “New entity” (2). Try to open the file with Office 365. Error while open file. Error in logs:

15:38:32.814 WARN  org.docx4j.mce.ArrayListMce             - org.apache.xerces.dom.ElementNSImpl does not implement Child
15:38:32.815 WARN  o.d.o.parts.JaxbXmlPartXPathAware       - unexpected element (uri:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision", local:"revisionPtr"). Expected elements are <{http://schemas.openxmlformats.org/spreadsheetml/2006/main}oleSize>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}functionGroups>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileVersion>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileSharing>,<{http://schemas.openxmlformats.org/markup-compatibility/2006}AlternateContent>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}pivotCaches>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}definedNames>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}sheets>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagTypes>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}calcPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}customWorkbookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishing>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishObjects>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookProtection>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}bookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}extLst>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileRecoveryPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}externalReferences>
15:38:32.847 WARN  org.docx4j.mce.ArrayListMce             - org.apache.xerces.dom.ElementNSImpl does not implement Child
15:38:32.847 WARN  o.d.o.parts.JaxbXmlPartXPathAware       - unexpected element (uri:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision", local:"revisionPtr"). Expected elements are <{http://schemas.openxmlformats.org/spreadsheetml/2006/main}oleSize>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}functionGroups>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileVersion>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileSharing>,<{http://schemas.openxmlformats.org/markup-compatibility/2006}AlternateContent>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}pivotCaches>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}definedNames>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}sheets>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagTypes>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}calcPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}customWorkbookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishing>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishObjects>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookProtection>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}bookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}extLst>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileRecoveryPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}externalReferences>
15:38:32.868 WARN  o.d.jaxb.NamespacePrefixMapperUtils     - No mapping for prefix 'xr'
15:38:32.868 WARN  o.d.jaxb.NamespacePrefixMapperUtils     - No mapping for prefix 'xr6'
15:38:32.868 WARN  o.d.jaxb.NamespacePrefixMapperUtils     - No mapping for prefix 'xr10'
15:38:32.868 WARN  o.d.jaxb.NamespacePrefixMapperUtils     - No mapping for prefix 'xr2'