Error Message :
U00012205 Deactivation of task '' (RunID '') not possible, because there are '0000000001' active tasks inside this workflow construct remaining.
There is an incorrect Job status in the EJPP table for the following scenario:
A master-workflow contains a sub-workflow. The sub-workflow contains an external dependency. If the sub-workflow gets skipped the external dependency will remain in status 1700 "Waiting for predecessor" although it should be 1930 "Ended skipped". As a result, the workflow cannot be deactivated in the activities window and an error message similar to the one above will be displayed.
See the example below where a master-workflow contains a sub-workflow. The sub-workflow contains an external dependency.
The external dependency is NOT skipped and the details of the Workflow will look similar to this:
In the database, the status is incorrect as seen in the example below.