Problem :oracle workflow: status rows for activities not getting created (wf_item_activity_statuses)

Problem :oracle workflow: status rows for activities not getting created (wf_item_activity_statuses<wbr />)

When I try to launch an Oracle custom workflow using the therefore meant PL/SQL functions (createProcess, startProcess)
I get the error message:
ORA-20002: 3101: Status row for item ‘XPLA_ORD/ORD53579’, activity ID ‘117141’ does not exist.
ORA-06512: at “OWF_MGR.WF_ENGINE”, line 3178

There has to be a problem inside the design time or runtime tables preventing the status rows from being created.
I have 2 custom workflow set up on the same database, and I have only one of them that throws this error.

I already tried cleaning up the workflow using scripts inside the workflow sql folder, and purging the workflow data using the WF_PURGE api.
I even went as far as removing all design and runtime data for this itemtype with the wfrmitt.sql script.
After this I uploaded the custom workflow again without any succes.

I have encountered this problem before on another environment, but after a month I was allowed to delete the workflow all together and reinstall everything from zero, resulting in a solution.
However I knew I couldn’t do this forever on all environments, and I’d like to know a good solution before this problem occurs on our production environment.

Code Snippet:
ORA-20002: 3101: Status row for item ‘XPLA_ORD/ORD53579’, activity ID ‘117141’ does not exist.
ORA-06512: at “OWF_MGR.WF_ENGINE”, line 3178


 

Solution: oracle workflow: status rows for activities not getting created (wf_item_activity_statuses<wbr />)

After looking at this again, I didn’t find a commit statement inside the timer package,
BUT: I found a stray commit in a previous package, so when the timer package errored the rollback couldn’t proceed because of the commit which messed up the savepoint.