Flow execution ended unexpectedly - StepExecution can't already have an id assigned
We are running 4 flows parallely in a split and occasionally the job fails on "Flow execution ended unexpectedly.." with underlying exception - "StepExecution can't already have an id assigned".
Whenever this has occured, three flows ran successfully, it fails on the last one.
We are left with no option to re-run the job when this happens.
Cancel that. I can see from the stacktrace that this is probably the end of an earlier topic on deadlocks (http://forum.springsource.org/showthread.php?t=86587). So there was a deadlock and the save operation is being retried? And it fails because the StepExecution id was set on the first try. If you confirm that is the problem we can look at solutions (it might be ugly).