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

Case Audit history records not getting purged

SA-35294

Summary



The purging of an independent case type is configured on the purge archive wizard and scheduled accordingly.

The cases are getting purged from the work table as expected, but the associated work history instances are not purged.

Administrators notice in the Pega Platform logs an error coupled to an ArrayIndexOutOfBoundsException when processing the audit records.

Error Messages



2017-02-25 04:46:26,626 [ PegaRULES-Batch-4] [ STANDARD] [ ] [ ruleset:rulesetversion] (rated.pega_procom_archivepurge) ERROR - Cannot open record with key: HISTORY-WORKCLASS WORKCLASS G-719326!20160531T190248.619 GMT
java.lang.ArrayIndexOutOfBoundsException: 0
at com.pega.pegarules.data.internal.access.CompressImpl.isCompressed(CompressImpl.java:239)
at com.pega.pegarules.data.internal.clipboard.StorageStreamCommonImpl.inflateStream(StorageStreamCommonImpl.java:711)
at com.pega.pegarules.data.internal.access.PageDatabaseMapperImpl.populatePageOrStringMapFromStreamColumn(PageDatabaseMapperImpl.java:2384)
...


Steps to Reproduce

  1. Configure the purge on the wizard to purge an independent case type.
  2. Schedule the purge.
  3. Review the case and its audit histories to determine if purged as expected.


Root Cause



The history records in this case had a null pzpvstream which is the cause of the expection when attempting to open the record for purge processing.

Resolution



Perform the following local-change:

Delete all the history instances from db for which pzpvstream is null, this will resolve the issue.

Published April 7, 2017 - 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