Exception while closing command context: No parent activity instance

Hello community

recently I started getting “Exception while closing command context: No parent activity instance with id… generated” on some processes.

We have one process (aw-create-roles-prod) which calls another process (aw-create-article-prod). In the cockpit I see the instances of the parent and the child but when opening the child, the before-mentioned error is shown. All instances show as OK.

I am not aware of any changes in the installation. The only change in in the process that was done recently was in aw-create-article-prod to make line 198 asyncAfter=“true” (from not async).

Version is Docker Tomcat 7.13-SNAPSHOT with Postgres 11.6 with basic authentication enabled (no other changes to the config).

Any hint on how to solve and/or how to recover from this state would be appreciated.

regards
Stefan

camunda-2020-11-10.log (79.0 KB)
aw-create-roles-prod-2020-03-08.bpmn (7.5 KB)
aw-create-article-prod-2020-08-25.bpmn (23.7 KB)

Hi @imix,

I can see you have given asyncAfter= true for the parent process. So the parent process will not wait for the child process to complete. So when the child process is completed, parent process instance will already be in completed state and the child instance will not be able to find the parent process instance.
So the solution is to update the asyncAfter=false when calling the sub process. Otherwise add one more task in the parent process after the sub process is called.

Hope it helps.

Regards,
Ramanathan S

Hi

Thank you for your input! Unfortunately I do not see any asyncAfters in the parent process. Only in the child with two external Servcie tasks. Is this a problem?

thank you
Stefan