Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Purge and Archive does not work



User has customized purge and archive process using out-of-the-box rules.
 When user executes the purgeandarchive, the NumberFormatException occurs. The same works  fine in PRPC 5.5 version.

Error Messages

Error - Problem invoking function: pega_rules_datetime.addToDate--(String,String,String,String,String) java.lang.NumberFormatException: For input string:

Steps to Reproduce

Run Purge and Archive process.

Root Cause

The customization done by the user causes the issue.


Below steps have been suggested to the user which resolved the issue:

1) Change Param.AgedDate property value by doing a private edit of getLimitedItem Activity which avoids the Number format exception faced initially.

           Current value : @addToDate("", "-"+.pyArchiveConfig.pyDaysOld, "", "", "")

           Updated Value : @addToDate("", .pyArchiveConfig.pyDaysOld, "", "", "")

2) Remove "IsPosDecimal" Editvalidate rule from "pyDaysOld" property and saved it to their local ruleset. In "CustomCheckarchiverecord" (customised) activity we have set a default value as zero for the "pyDaysOld" property using the trim function to avoid the exception which has been thrown previously.

3) In "Getlimiteditem" activity of 7.1.6 the "getarchivableitem" listview has been created as it was removed in that version and kept under work – class.

After performing the above changes run the Purge & Archive process and confirmed that the process is running fine without any issues and the work objects gets archived. 

Published August 27, 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.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us