Need help in identify and fixing the exception org.apache.velocity.exception.ParseErrorException

Hi,

In our project we are Aspose to convert the MS Word document to PDF by injecting the dynamic data in JSON data form and we are using Bookmark in the Word document to dynamically change the logo in the generated PDF. After started using Bookmark to dynamically change the Image based on the flag in JSON data, we are started getting the exception ParseErrorException while converting the MS Word docs to PDF. We don’t know what is the rootcause of this issue. Can sombody help us to resolve this issue. Thanks.

java.lang.Exception: org.apache.velocity.exception.ParseErrorException
at NOTICE-HEADER_E.insertHeaderDataIntoDatabase(java.lang.Exception: org.apache.velocity.exception.ParseErrorException
at gov.md.dhs.cc.service.impl.CcPreprocessorServiceImpl.insertHeaderDataIntoDatabase(CcPreprocessorServiceImpl.java:952)
at gov.md.dhs.cc.service.impl.CcPreprocessorServiceImpl.lambda$generateHeaderTemplate$2(CcPreprocessorServiceImpl.java:518)
at java.util.HashMap.forEach(HashMap.java:1288)
at gov.md.dhs.cc.service.impl.CcPreprocessorServiceImpl.generateHeaderTemplate(CcPreprocessorServiceImpl.java:479)
at gov.md.dhs.cc.service.impl.CcTriggerServiceImpl.generateNotice(CcTriggerServiceImpl.java:577)
at gov.md.dhs.cc.service.impl.CcTriggerServiceImpl.lambda$triggerNoticeAndPrintSummary$36(CcTriggerServiceImpl.java:1294)
at java.util.HashMap.forEach(HashMap.java:1288)

@karthiartha

It seems like you are using Aspose.Words for Java in order to carry out the conversion of Word to PDF. However, could you please confirm and share which Aspose APIs are your using at your side. Please share sample code snippet and complete environment details with sample file(s) with us. We will test the scenario in our environment and address it acccordingly.