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

forLoop action in workflow taking huge time

Jump to solution

All these days for loop action in a workflow was working smoothly, all of a sudden the for loop action is taking huge time and often hanging forcing to cancel the workflow or its going in infinite loop, how to control this behavior.

below is the screenshot of my workflow

Labels: (2)
Tags (1)
0 Kudos
Reply
3 Replies
lakshminarayana
Nintex Newbie

Re: forLoop action in workflow taking huge time

Jump to solution

Hi Altaf Hussain‌,

Its surely depends on the query list action result collection, how many items you are trying to retrieving. And also can show what you are doing with multiple collection operations using run parallel actions.

My suggestion is try to minimize your result set by using suitable filter conditions in query list action. And instead of multiple collection operations use single query list operation to get all the required fields and do your build string, math operations.

Thanks,

Reply
Automation Master
Automation Master

Re: forLoop action in workflow taking huge time

Jump to solution

what's exactly in your meaning 'slow'? can you quantify that? isn't it just matter of safe looping?

have you identified which action within the loop causes the delay?

0 Kudos
Reply
altf21
Nintex Newbie

Re: forLoop action in workflow taking huge time

Jump to solution

Its not the query or the loop (though in the statistics it was looping continuously) the root cause was the collection operation where in I was trying to add array data to a txtvariable which i am assuming causing the issue, after troubleshooting step by step instead of using add i should have populated the variable with get option which solved the problem in this case.

There is no safe loop option available in Nintex Adminstration for Sharepoint 2016.

0 Kudos
Reply