process instance suspended - max session exceeded
I have a process that runs every 5 minutes. It was running ok but for some reason, it has started getting suspended. I get an email that says the following:
Dear AgilePoint System Administrator, Process instance 'AutoSampleSelector_IdentifySampTubes-4-15-2021-6:30 PM(96)' has been suspended because maximum session was exceeded on Activity 'Process Complete'. Process Template = 'AutoSampleSelector_IdentifySampleTubes', Version = '1.29' You may check if it is infinite loop.
I cancelled several of the instances and then paused the event service. Then when I started the event service back up, my processes don't even show up when I search for them by process name. I can use the instance name in the above email to search for the process but if I search by process model name, those later instances don't appear in the list of processes.
I'm not sure what the error means when it mentions the "maximum session". What is that and how am I exceeding it? Could it be that another process is starting to run before the previous one is completed? if so, how can I tell it not to start the next process if the previous one hasn't completed yet?
Thanks!
-
Official comment
Hello Sylvia,
Session is the number of times the activity is activated. When there is a loop in the process model, the activities involved could be activated multiple times. AgilePoint by default allow the process to loop up to 50 times, when the process loop the 51th iteration, the process will get suspended the error will be sent. This is a safety net to avoid infinite looping of process instances.
Based on your description, it seems like that the looping is not expected. Please check the process design logic.
However, if the process is expected to loop more than 50 times, please check the article below to increase the maxLoop or Maximum Sessions Allowed.
https://documentation.agilepoint.com/8010/admin/serverConfigMaxLoop.html
Hope this helps!
Comment actions -
I didn't know this. Thank you Meenakshi!
There's still the odd issue that the process runs are not showing on the Runtime Management Processes screen. I cannot figure out why. I think I will issue a support ticket for that. There's something else going on and I really need it resolved today, if possible. Thanks for your quick response!
Please sign in to leave a comment.
Comments
2 comments