Cannot submit a request due to error during commit.
When creating a work object, if during the creation activity sequence there is an attempt to perform an Obj-Open on an object which may or may not exist, that error will prevent the subsequent commit from competing successfully even if the object targeted to be opened is not critical to the creation process.
•pyCommitError:** Database save using an insert failed
Steps to Reproduce
- Create a custom activity which performs all the necessary steps for creating a work object but also contains an Obj-Open method to populate certain not critical elements of the new work object.
- Launch the flow coupled to the custom activity and observe the creation and subsequent commit fails.
An issue in the custom application code or rules. The error spawned in the failed Obj-Open method propagates to the commit and prevents successful completion.
Perform the following local-change:
Following the non-critical Obj-Open method call insert a call to Activity-Clear-Status to reset the activity failure status upon error.