Support Article
purgeItem rule in HFix-2991 fails to compile
SA-25059
Summary
After installing the HFix-2991, the purge or archive process is not executed. The purgeitems function fails to compile.
Error Messages
RULE-UTILITY-FUNCTION ARCHIVEPURGE PURGEITEMS #20101005T085807.323 GMT/Pega-ProCom:05-03-25
----------
1. ERROR in file://runtime:/PRGenJava/com/pegarules/generated/pega_procom_archivepurge.java
(at line 3280)
PegaDatabase dbInf = (PegaDatabase) (tools.getDatabase());
^^^^^^^^^^^^
PegaDatabase cannot be resolved to a type
----------
2. ERROR in file://runtime:/PRGenJava/com/pegarules/generated/pega_procom_archivepurge.java
(at line 3280)
PegaDatabase dbInf = (PegaDatabase) (tools.getDatabase());
^^^^^^^^^^^^
PegaDatabase cannot be resolved to a type
----------
2 problems (2 errors)
Steps to Reproduce
Schedule purge or archive process.
Root Cause
A defect in Pegasystems’ code or rules:
com.pega.pegarules.priv.database.PegaDatabase class is not included in the function import list. As a result, the library fails to compile.
Resolution
Apply HFix-28083 and recompile the library.
Published July 2, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.