I have a BPM 8.5.6 in in production since 2015 without never doing housekeeping.
I am doing it now using the command:
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym MBCPCMP -containerSnapshotAcronym SM.0_16 -instanceStatus COMPLETED -outputFile Z://trace_20220224.log -endedBeforeLocal 2019-08-05T23:59:59]')
This has been working for all the days before 2019-08-04, for this particular command with -endedBeforeLocal 2019-08-05T23:59:59 I receive a message:
[2/24/22 16:18:25:648 WET] 0000046b Log I PAL: Exception occurred during deletion of ProcessInstance with ID = 8,476,975. Trying to delete tasks first."
[2/24/22 16:18:25:663 WET] 0000046b Log I PAL: The BPMProcessInstancesCleanup job is running. Progress: Deleted 0 task(s).
After this I executed:
AdminTask.BPMTasksCleanup('[-containerAcronym MBCPCMP -containerSnapshotAcronym SM.0_16 -taskStatus ALL_COMPLETED -outputFile Z://trace_20220218.log]')
[2/18/22 21:27:39:589 WET] 0000026f CommandServic I PALAdminCommands otherDeleteCompletedTasks Entering
[2/18/22 21:27:39:604 WET] 0000026f Log I PAL: Starting the BPMTasksCleanup command with the following parameters: -taskStatus ALL_COMPLETED -taskType ALL -containerAcronym Millennium BCP Claims Management -containerSnapshotAcronym SM.0_16 -maximumDuration 0 -transactionSlice 100 -outputFile Z://trace_20220218.log
[2/18/22 21:27:39:682 WET] 0000026f Log I PAL: Because no tasks fulfilled the specified parameters, no tasks were deleted.
[2/18/22 21:27:39:682 WET] 0000026f Log I PAL: The BPMTasksCleanup command has finished.
[2/18/22 21:27:39:682 WET] 0000026f CommandServic I PALAdminCommands otherDeleteCompletedTasks Exiting
Despite it says there are no tasks to delete I continue to receive the same error message when I try to
AdminTask.BPMTasksCleanup('[-containerAcronym MBCPCMP -containerSnapshotAcronym SM.0_16 -taskStatus ALL_COMPLETED -outputFile Z://trace_20220224.log]')
What can I do to solve this?
------------------------------
JOAO PEDRO ALEXANDRE
------------------------------