Question

flow has ended but not removed from pxflow

flow has ended but not removed from pxflow. v7.1.6

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

October 12, 2015 - 10:10pm

Make sure you don't have any obj-save or obj-delete calls that targets the work object or the assignment page and that also use the "write now" or "immediate" checkmarks to commit the operation.

Also, make sure you don't have any "commit" calls.  The core layer will handle committing of your work.

If you have any of the above extra calls, and if the core layer's commit fails for some reason, it will attempt to roll back but will not be able to since your extra commit has already occurred.

/Eric

October 13, 2015 - 12:50am
Response to ericosman_GCS

Thanks for the quick response Eric.

I am sure we dont have any force commits or obj-save methods used in our flow. but i will do re check again.

is there any other reason which causes this issue.

October 13, 2015 - 6:24pm

Is this reproducible at will, or just occasional without a recipe for producing it ?

Assuming only occasional, look at the history on the work object to know what flows and flow actions led up to the failure.  That tells you what sorts of code to look for.

When the issue occurs, what shows up in pega log file at that time ?  Make sure you're looking on correct node if it's a multi node system.

The reason I asked about the extra commits is that under the hood, the old assignment is deleted (deferred) then later pxFlow is updated to remove the entry, then it is all committed.  If there is an error during commit, it is rolled back.  Normally, this roll back undeletes the assignment so that the pxFlow still refers to the assignment.   But are you saying pxFlow refers to a nonexistent assignment ?  That could be because the assignment deletion got committed instead of just deferred.

/Eric

November 11, 2015 - 4:34pm
Response to ericosman_GCS

thanks Eric. this is not getting replicated now. we will check in this direction if it happens again.

November 3, 2016 - 12:58pm

Hi All,

I am facing the similar issue when using resume flow thru SLA, did you have any solution