Delete Investments job fails with a PRJ-07536 Error Due to a Unfinished Process on the Investment

Document ID : KB000094955
Last Modified Date : 11/05/2018
Show Technical Document Details
Issue:
The Delete Investment Job fails in PPM with error message: PRJ-07536: An error ocurred while attempting to delete one or more projects in the background scheduler. Please, refer to the log for details.

Looking in the bg-ca.logs, there's an error similar to "com.niku.union.odf.exception.ODFException: Exception when trying to delete processes for Risk with PK: 5000000.1 
with Caused by: com.niku.union.utility.MessageKeyException: BPM-0200: The object being deleted is associated with an unfinished process instance."
 
Cause:
This can happen if there is still a running process on the project when the job is run.
Resolution:
Cancel the process that is still in progress on the project (or wait until it completes if applicable). If unsure which object or project the process is associated with, the error in the bg-ca.logs can help point to the impacted object type and project.
Additional Information:
KB000038536 - Delete Investment Job Fails due to an issue with a project setting
KB000022567 - Delete Investments Job Fails with warning the bg-ca.logs referencing "Team record referenced by other records and cannot be deleted. The team record has been disabled."
KB000052712 - Delete Investments job may leave an investment unprocessed if there are orphaned requisition records
KB000023672 - Delete Investments job leaves some projects unprocessed due to access rights