PIM(SAM) All: Remained audit log after running CleanupSubmittedTasks job

Document ID : KB000113792
Last Modified Date : 14/09/2018
Show Technical Document Details
Issue:
Customer tried to delete Submitted Tasks in audit log by CleanupSubmittedTasks job.
But it seems to be remained some records which is in target date at time field.

After next execution, some record is deleted but another log is remained.

What does it happen?
Environment:
OS: Windows 
Prod: CA Privileged Identity Manager All version for Enterprise Management Server
    CDB: All
    User store: All
 
Cause:
CleanupSubmittedTasks job is checking related record at the task.
And if the date which is internal record has out of range, the record does not delete.
We found following scenario as sample.
1. create Privileged Account requests in this month.
2. forget approval task and reject next month.
3. run CleanupSubmittedTasks job for 1st month.
4. the record does not delete in the month.  but it may delete in next month.
Resolution:
It is normal behavior since some date information at internal record is out of range.