BulkRap fails to import next RAP after error
Successfully configured prpcUtils to import a series of RAP files and its working fine except if there is a corrupted jar file in the list.
In prpcUtils.properties file, set the below mentioned flag to continue on error. But it is not working.
# Do not fail on error
You want the utility to continue to the rest of the jar files, even if one fails.
2015-03-26 09:56:59,310 [ ] [ STANDARD] [ ] ( internal.archive.ParUtilsImpl) INFO - error.jar is Unknown
2015-03-26 09:56:59,310 [ ] [ STANDARD] [ ] ( internal.util.ImportImpl) ERROR - Error reading archive error.jar
com.pega.pegarules.pub.clipboard.PegaArchiveException: PegaArchiveException PRRuleMgmtUtils.createArchiveForRead(PRFile) PegaArchiveException PRRuleMgmtUtils.createArchiveForRead(PRFile) Corrupt archive or unsupported archive type.
2015-03-26 09:57:03,132 [ ] [ STANDARD] [ ] ( internal.util.MoveLog) INFO - Instances not imported due to error: 0
2015-03-26 09:57:03,132 [ ] [ STANDARD] [ ] ( internal.util.MoveLog) INFO - Instances not processed: 0
2015-03-26 09:57:03,132 [ ] [ STANDARD] [ ] ( internal.util.MoveLog) INFO - Operation Status: Import Complete
Steps to Reproduce
In prpcUtils.properties file, set
The root cause of this problem is software use/operation error. The utility function is working as expected.
The explanation for this behavior is as follows:
From the log file you can see that the error.jar import fails but the NextGood.jar is imported. Because this archive was previously imported there was nothing new in the archive to import so the "Instances imported" count is 0 and the "Instances skipped" count is 2.
Published June 12, 2015 - Updated October 8, 2020
Was this useful?
0% found this useful
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.