Nesting Level limit in Power Automate.
In one of my Projects in which I was automating a SharePoint 2013 Stage workflow, I ran into a very interesting scenario, Flow starts to throw an exception that you have actually reached a limit for your nested structure and you can't create actions beyond it.
This is really weird as in 2013 I never experienced this, but that may be because in 2013 we had a stage structure. To replicate the stage workflow we use a stage template. I have written another blog on how this is done. Please check it here for more info.
So in our case we have 2 switch statements one for Phase and another for Status. Each having multiple options. But when you come down to these detail actions inside these status you sometime further need condition on a field.
Like in my case i had my first level where in I check if the Threshold (Internal column) has value 199,
then
But my third level comes in when i compare if my threshold has value 200
Each of yes and No statement has another switch inside it for Status. Each case of status then further has actions. But I ran into scenarios where each of these too had conditions and further yes/ no sections.
And these yes/ No sections too had further conditions. like comparing a field value, which further subdivided. This is where I had reached the nested 9th level and Flow started giving me an error saying Flow has a maximum nesting limit of 8
The purpose of writing this one was to help someone take a better call in designing a nested flow solution to client.
Comments
Post a Comment