cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
igalm
Nintex Newbie

For each loop iterations takes too long

Hi Everyone,

I have a SP2013 installation and Nintex Workflows on top of it. In my workflows, I have to poll for a result from an external web service using a for each loop. The workflow is part of a demo and so things have to move quickly.

 

Unfortunately, each iteration takes more than 5 minutes. I tried adding a "wait for" action and defined the minimum of 1 minute (which should be enough for my demo) but instead of 1 minute it takes around 6.

 

Any help is much appreciated.

 

Thanks,

Igal.

Labels: (2)
Tags (2)
0 Kudos
Reply
7 Replies
mlauer
Nintex Newbie

Re: For each loop iterations takes too long

0 Kudos
Reply
Automation Master
Automation Master

Re: For each loop iterations takes too long

Hi there,

I would suggest doing some testing - in this case I would disable the Web Service call to see if everything moved along as expected with out it.  The For Each action isn't bound by Safe Looping like the Loop action so it being the reason for the pause would surprise me.   I think that maybe your Web Service is taking long to respond or even timing out - if you could post some screen shots to give us a better look at what you have going on inside the For Each that would help as well.

Thanks

0 Kudos
Reply
igalm
Nintex Newbie

Re: For each loop iterations takes too long

Indeed, disabling safe looping and republishing the workflow solved the issue.

Since this is not a production environment and used only for demos, there is no issue with safety here.

The one odd thing about all of this is that the trick did not apply for the "Waif for" action. When i specify 1 minute in for this action, it still takes around 5 minutes to execute.

0 Kudos
Reply
Automation Master
Automation Master

Re: For each loop iterations takes too long

Yes, that is because the default is usually about 5 minutes - it simply overrides the 1 minute you specified in your wait. 

0 Kudos
Reply
igalm
Nintex Newbie

Re: For each loop iterations takes too long

I'm not sure what you mean by "default is 5 minutes".

Where can I change it ?

Thanks!

0 Kudos
Reply
pfudala
Nintex Newbie

Re: For each loop iterations takes too long

Hi,

When you use the "Wait for" action, the current process no longer runs the workflow. It's relayed to the Timer job and the pause depends on its next execution, which is by default every 5 mn.

Manfred Lauer​ gave you a good reference on how to change it.

0 Kudos
Reply
burkslm
Nintex Newbie

Re: For each loop iterations takes too long

Can you post a screenshot of your workflow?

0 Kudos
Reply