Error when generate pdf with CALCULATE_PDF_BY_DOCUMENT_ID of Print Engine after upgrade from 2022.02 to 2022.06

Hi,

We are in the progress of upgrading A12 from 2022.02 to 2022.06.

In 2022.02, we use printEngineVersion: 0.202202002.1
After upgrading to 2022.06, we cannot run the app with the old version of print-engine then we need to upgrade it to this rc version printEngineVersion: 0.202206000.0-rc_00000.
The application runs successfully, but then we met this error when trying to call the CALCULATE_PDF_BY_DOCUMENT_ID method.

com.mgmtp.a12.dataservices.exception.NotFoundException: PrintDocumentModel with id SingleTravelExpenseClaim_PrintModel is not available.
	at com.mgmtp.a12.print.engine.core.loaders.PrintModelLoader.lambda$loadModelInsecure$0(PrintModelLoader.java:40) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at java.base/java.util.Optional.orElseThrow(Optional.java:408) ~[na:na]
	at com.mgmtp.a12.print.engine.core.loaders.PrintModelLoader.loadModelInsecure(PrintModelLoader.java:40) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at com.mgmtp.a12.print.engine.core.loaders.PrintModelLoader.loadModelInsecure(PrintModelLoader.java:25) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at com.mgmtp.a12.dataservices.model.persistence.AbstractModelLoader.loadModel(AbstractModelLoader.java:24) ~[dataservices-core-34.1.2.jar:na]
	at com.mgmtp.a12.print.engine.core.loaders.PrintModelLoader.getPrintModelById(PrintModelLoader.java:51) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at com.mgmtp.a12.print.engine.core.services.PDFCalculationService.calculatePDF(PDFCalculationService.java:101) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at com.mgmtp.a12.print.engine.core.operations.calculations.CalculatePrintPDFByDocumentIdOperation.rpc(CalculatePrintPDFByDocumentIdOperation.java:60) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
	at com.mgmtp.a12.print.engine.core.operations.calculations.CalculatePrintPDFByDocumentIdOperation$$FastClassBySpringCGLIB$$648b4b6d.invoke(<generated>) ~[print-engine-core-0.202206000.0-rc_00000.jar:0.202206000.0-rc.0]
  • I did use the jar file to migrate the old print model
  • I checked and there is a record of “SingleTravelExpenseClaim_PrintModel” in the model table.
    Is there anything that I miss or I can do to make it work again?

Thank you

I update the printEngineVersion to 0.202206000.0-rc_00001 and the problem is fixed