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

Question

Question

Workflow repeats when failing

asked on September 29, 2017 Show version history

I have a workflow that runs over and over and over again if it fails/reaches an "End Workflow" step. I have no idea why this is happening. If it reaches the end of the workflow successfully, it completes and I have no issue. But if, let's say, it tries to delete a file that is not found, it will terminate the workflow and then re-run it. I noticed this because the delete file task came after an email, so I received hundreds of emails before I realized what was happening. The workflow also re-runs if it reaches this End Workflow step.

The workflow is triggered when a form is submitted. I use a workflow service task. The workflow name in process model is the same as the workflow name... I just don't know why it would keep trying to re-run the workflow if it fails (or reaches End Workflow step). Any thoughts on this?

 

edit: there are no starting rules on this workflow - it only runs when a specific form is submitted. It's triggered by the process modeler.

0 0

Answer

SELECTED ANSWER
replied on September 29, 2017

It looks like there is a line off to the right of your "end workflow" step.  You'll want to drag it out of the Repeat and drop it below that horizontal line to separate it from the Repeat task. 

0 0
replied on October 3, 2017

Hi David,

I have the same problem, I ended up with 20,000 repetitions before i realised. I think I have refined the issue down to Laserfiche Forms.

I found that if the workflow construct within my Form had the parameter 'Wait for workflow to finish' set to 'No' then the workflow worked as it should without the repetition. If I set it to 'Yes' wait for the workflow to finish then I got the repetition as before.

This isn't a fix I am suggesting, as in my case I need the form to pause until the workflow has finished. It is just a refinement on the problem.

0 0
replied on October 3, 2017

I will try this! Thanks for the suggestion.

0 0
replied on October 5, 2017 Show version history

Hi Dave,

My VAR was able to look into this and came up with a fix that works for me at least and has stopped the repetitions.

If you go into your Forms database and find the table dbo.cf_options there is a setting AutoRetryExcludeWorkflow. On my system it was set to false and it needs to be true.

Hope this helps.

1 0

Replies

replied on September 29, 2017

Are there any starting rules on the workflow itself?  If there is a rule on there as well as having the form start it, maybe the rule is triggering it?

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

Sign in to reply to this post.