Support Article

Cannot submit a request due to error during commit.

SA-28978

Summary



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.

Error Messages



•pyCommitError:** Database save using an insert failed


Steps to Reproduce

  1. 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.
  2. Launch the flow coupled to the custom activity and observe the creation and subsequent commit fails.


Root Cause



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.

Resolution



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.

https://pdn.pega.com/sites/default/files/help_v63sp1/Content/methods/activity-clear-status/activity-clear-status.htm


 

 

Published October 7, 2016 - Updated October 20, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.