Skip to main content
June 22, 2022
Question

Any limit on items to run at one go in a loop in process model?

  • June 22, 2022
  • 4 replies
  • 0 views

Hi Team,

I have a process model which has around 5-6 nodes running in a loop. At one go the loop may have more than 1000 items to be run. The process model gets paused by exception after running the loop for 1000th time. Do we have any limit on  number of times a loop can run in one go?

If yes, how can we handle the exception if we have more items than the maximum limit ? After the loop we have few nodes to run which gets stopped as the process model is getting paused.

Appian current version : 21.1. Will soon migrate to 22.2.

Any help is appreciated. Thank you.

    4 replies

    stefanhelzle0001
    Brainy
    June 22, 2022

    The issue here is that looping in a process is a bad practice and should be avoided.

    In case you have to go this way, make sure to not pile up old node instances by enabling "Delete previously completed instances" for ALL nodes in the loop.

    docs.appian.com/.../Process_Node_and_Smart_Service_Properties.html

    June 22, 2022

    Hi Stefan,
    Will going with the above option have no effect on the nodes which are out of the loop? Actually after the loop completes, we have few nodes that need to be processed from the data executed in the loop. Like mass addition of rows with items from loop to DB, sending Emails, etc

    stefanhelzle0001
    Brainy
    June 22, 2022

    No, this will not have any effect. You store the node outputs to process variables which are not affected by this configuration.