cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
foxngn84
Helper I
Helper I

Does looping won't work If i got too many steps?

Hi Guys, 

 

I got a workflow that required me to loop through 63 steps. But it doesn't loop after runs all the 63 steps from the start. But if I were to minimize the steps to just a few, it can loop without any issues. I doing a loop function by creating a counter var. and increase the variable after each of the task. 

 

foxngn84_2-1664178374275.png

 

foxngn84_3-1664178387363.png

 

 

Another thing as well got issue is when I wants to click link from excel, I will instruct a command: "{Apps}oo{Return}" , but when I run this flow it won't send any response if I got too many steps in my flow. 

 

 

 

 

 

 

 

2 REPLIES 2
ThomasFonn
Resolver I
Resolver I

Hi @foxngn84 

As far as I know, there are no limitations on actions within a loop, but if you want to reduce the number of actions inside a loop, you could try to move some of them into a subflow, and run the subflow from within the loop.

 

Also, I don't see you actually using the "counter" variable for anything (other than incrementing it), and the LoopIndex is doing the same work as you want the counter to do by default.
You are looping through from 1 to "FirstFreeRow", but maybe FirstFreeRow:s value is lower than you expect?
That would mean that you won't loop enough times

MichaelAnnis
Super User
Super User

You don't increase the counter variable.  There are 2 main loop types in PAD.  Loop and For each.  For each does every item of a list or every row of a datatable.

 

A loop's number of iterations is defined in the Loop parameters; example:

 

Loop 0 to 99 increment of 1 will loop 100 times starting with %LoopIndex%=0 and ending with %LoopIndex%=1.

 

Hope this helps.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,356)