Support Article
Purge and Archive does not work
Summary
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.Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.