Process with REST API delete call throws 400 error when attempting to run against sub object instance

book

Article ID: 198362

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

I have a process that has a primary object of dependencies(which is a custom sub object).  This process is triggered when I update a field on the dependency object.  When my script runs (I hard coded the URI just for testing purposes), I get a 400 error.  When I use the same exact script in a process without a primary object it runs successfully.  What could be the problem?

Cause

ERROR 2020-08-28 10:02:11,347 [http-nio-8080-exec-4511] rest.validation (clarity:user_name:your_session:PPM_REST_API) ExceptionInfo ::  Could not delete resource. Resource name: custBoeDependenciess. Error code: bpm.referencedNonFinishedProcessInstances Error message: BPM-0200: The object being deleted is associated with an unfinished process instance.

Environment

Release : 15.8

Component : CA PPM SAAS APPLICATION

Resolution

Issue is that process is running against an instance which REST API call is attempting to delete and that is what error is complaining about, because it can't do that.

Advised to use process without object association and run it via job.