Hi Jason,
I updated the code to set different name to the output file. I also added the logger. I still unable to open the output files
. I am using:
- Microsoft office 365 ProPlus, version (16.0.12527.21230) 32 bit.
- Java 8
- Last release docx4j 8.2.3
Please find attached the code, the samples files and output sample files and the logs.
the logs:
12:52:10.222 [main] INFO org.docx4j.utils.XPathFactoryUtil 38 - xpath implementation: org.docx4j.org.apache.xpath.jaxp.XPathFactoryImpl
12:52:10.230 [main] INFO org.xlsx4j.jaxb.Context 46 - java.vendor=Private Build
12:52:10.230 [main] INFO org.xlsx4j.jaxb.Context 47 - java.version=1.8.0_252
12:52:10.697 [main] INFO org.xlsx4j.jaxb.Context 69 - MOXy JAXB implementation is in use!
12:52:10.846 [main] INFO o.d.jaxb.NamespacePrefixMapperUtils 46 - Using MOXy NamespacePrefixMapper
12:52:10.855 [main] INFO o.d.jaxb.NamespacePrefixMapperUtils 109 - Using MOXy NamespacePrefixMapper
12:52:10.889 [main] WARN org.docx4j.mce.ArrayListMce 65 - com.sun.org.apache.xerces.internal.dom.ElementNSImpl does not implement Child
12:52:10.891 [main] WARN o.d.jaxb.JaxbValidationEventHandler 89 - [ERROR] : unexpected element (uri:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision", local:"revisionPtr"). Expecte
12:52:10.891 [main] WARN o.d.jaxb.JaxbValidationEventHandler 104 - Column is 1307 at line number 2
12:52:10.891 [main] INFO o.d.jaxb.JaxbValidationEventHandler 188 - shouldContinue is set to false
12:52:10.892 [main] WARN o.d.o.parts.JaxbXmlPartXPathAware 499 -
Exception Description: An error occurred unmarshalling the document
Internal Exception: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 1307; unexpected element (uri:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision", local:"revisionPtr"). Expected elements are <{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileVersion>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileSharing>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookPr>,<{http://schemas.openxmlformats.org/markup-compatibility/2006}AlternateContent>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}workbookProtection>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}bookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}sheets>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}functionGroups>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}externalReferences>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}definedNames>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}calcPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}oleSize>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}customWorkbookViews>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}pivotCaches>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}smartTagTypes>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishing>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}fileRecoveryPr>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}webPublishObjects>,<{http://schemas.openxmlformats.org/spreadsheetml/2006/main}extLst>
12:52:10.896 [main] DEBUG org.docx4j.utils.ResourceUtils 47 - docx4j.jaxb.JaxbValidationEventHandler resolved to org/docx4j/jaxb/mc-preprocessor.xslt
12:52:10.896 [main] DEBUG org.docx4j.utils.ResourceUtils 70 - Attempting to load: org/docx4j/jaxb/mc-preprocessor.xslt
12:52:11.066 [main] WARN org.docx4j.utils.XSLTUtils 17 - Found some mc:AlternateContent
12:52:11.067 [main] WARN org.docx4j.utils.XSLTUtils 17 - Missing mc:Fallback! Dropping the mc:AlternateContent entirely.
12:52:11.964 [main] WARN o.d.openpackaging.io.SaveToZipFile 351 - Encountered external resource
https://consulting.global.deloitteonlin ... .0_LO.xlsx of type
http://schemas.openxmlformats.org/offic ... alLinkPathDocument saved as: /home/jchacon/Documents/JARMedatataOct2020/MetadataCleanOriginal/sample04-11Original/sample01-output.xlsx
Thanks for your help,
Regards,
Johanna