Pega OOTB purge functionality not working v 8.6
Pega v 8.6 :Requirement is to purge all Resolved Cases aging for 365 days
.I have configured the Purge wizard as per Pega articles and selected only Purge as we do not require Archiving with aging days since 173 days in order to validate a small number of cases for testing the Purging functionality.
The Job Scheduler pyPegaPurger has been saved in our application RS and the access group has been updated to the application Ruleset.
However when the Job Scheduler runs there aren't any updates on the DB side, even if cases are falling within the criteria I do not see them getting deleted from work table. When traced, I can see the pega api getting called from the JS's activity.
Is there additional setting required for Pega OOTB feature to run for an application?
below DSS settings have been updated:
dataarchival/purgeQueryLimit = 50
dataarchival/batchSize = 25
dataarchival/purgeForceLoggingEnabled = true
Can anyboby suggest what am I missing out on,which all rules need to be updated befor eth efunctionlaity could work?
Early response is greatly appreciated.
***Edited by Moderator Marije to add Capability tags***
***Edited by Moderator Marije to add Support Case Details; ***
@PriyaK20 I can see that the support ticket was closed with the following investigation notes:
IssuePega api does not purge cases even if there are cases falling within the Purge Criteria. Creating this task to capture ui sme efforts on analysis.
Analysis: Post Analysing the network and pega logs from the client:
Found 403 status in server call & empty CSRF token error in pega logs. CSRF token is a dependency for this purge action as the serve was expecting a token instead it received an empty token.
Attempted solutions Purge wizard is now working without breaking the section after a config change, Configure->System->Settings-> unchecked Cross-Site Request Forgery.
Root cause: Configuration issue
Outcome: Issue fixed after a config change, Configure->System->Settings-> unchecked Cross-Site Request Forgery. For now the users were asked to uncheck the CSRF token check to use the Purge functionality of Pega.
@PriyaK20 I can see that the support ticket was closed with the following investigation notes:
IssuePega api does not purge cases even if there are cases falling within the Purge Criteria. Creating this task to capture ui sme efforts on analysis.
Analysis: Post Analysing the network and pega logs from the client:
Found 403 status in server call & empty CSRF token error in pega logs. CSRF token is a dependency for this purge action as the serve was expecting a token instead it received an empty token.
Attempted solutions Purge wizard is now working without breaking the section after a config change, Configure->System->Settings-> unchecked Cross-Site Request Forgery.
Root cause: Configuration issue
Outcome: Issue fixed after a config change, Configure->System->Settings-> unchecked Cross-Site Request Forgery. For now the users were asked to uncheck the CSRF token check to use the Purge functionality of Pega.
https://docs.pega.com/security/86/enabling-and-configuring-cross-site-request-forgery-settings
https://docs.pega.com/user-experience/85/corb-error-chrome-80-samesite-cookies
For the Purge issue the "Enable CSRF token check" needs to be unchecked, as it will affect the present Purge wizard configuration. We will be upgrading the Purge wizard in the future where this dependency will be removed.
Outcome:
Disabling csrf has solved the current issue but product improvements were logged to handle the dependency issue with current purge workflow. .
Note : UI refactoring is a major exercise and cannot be done in patch release. Purge Archive is deprecated as of 8.5 (PegaCloud) and in 8.7 in favour of case archival.