You are viewing limited content. For full access, please sign in.

Question

Question

prevent workflow from terminating

asked on July 11, 2016

Hi,

Scenario is that there is a folder which contains several documents that are being edited by a team of several users at once. Once done any user from that team selects a metadata field as completed and the folder moves to another folder showing that it has moved to another team for their edit. 

Problem here is that if any of the user has any document open while someone selects complete from metadata, workflow tries to move that folder and terminates with the error. 

(MoveEntry)Multistatus response. [9039]
Another operation on which this operation depends failed. [9054]
Entry locked. [9014]

Is there a way for my workflow to not terminate and wait for all the files to be closed or maybe forcefully close all the open files and move the folder. It's a really long process and if workflow terminates it could really mess up entire process. 

or maybe any other way of achieving this.

Any help is greatly appreciated.

Thanks

Junaid Inam

0 0

Answer

SELECTED ANSWER
replied on July 11, 2016

You can add the specific error in the "Task Error Handlers" within the Administration Console to do a wait and retry after specific minutes.

 

2 0
replied on July 12, 2016

Thanks. it worked perfectly. My only question is that in this list error 9014 was already there yet workflow terminated instead of retrying. I had to add all three errors for my workflow to not terminate and wait before retrying. 

0 0
replied on July 12, 2016

It's hard to tell without actually seeing the workflow and the full error message, but it looks like it's terminating on the 9039, so it doesn't get a chance to retry on 9014.

1 0

Replies

replied on July 11, 2016

Hi,

 

You can also use Try\Catch block inside the Loop, and retry the till it is successfully moved.

So in case of error in moving it can retry after sometime by adding wait condition.

 

In this approach, you will be able to control the workflow errors.

 

1 0
replied on July 12, 2016

Thanks for your reply. I was able to achieve your solution using this workflow.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.