web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow stalls & does not...
Power Automate
Unanswered

Flow stalls & does nothing (with no error) ONLY on second pass through.

(0) ShareShare
ReportReport
Posted on by 8

Here is the basic setup of how this flow works inside of Power Automate Desktop:

 

Integer loop, from 1 to 10, step of 1.

 

Inside of each loop, it runs a subflow.

 

That subflow then points to the next subflow, and so on, about 10 subflows deep. Once the process is finished, it exits out of all subflows in the correct order, thus returning to the loop subflow page, where it finishes loop 1, and as per instructions, goes again for pass number 2/10.

 

LOOP --> Pass 1 > Subflow 1 > Subflow 2 > Subflow 3 > Subflow 4 etc.

 

LOOP --> Pass 2 > Subflow 1 > Subflow 2 > Subflow 3 > Subflow 4 etc.

 

Here is the problem I'm having. On the 2nd pass, it just fails to click on a UI element on a website. It doesn't cough up an error, it just stays stuck there on that step, with that step highlighted in blue, & will just stay there forever until I stop the flow.

 

The weird thing is, if I run the entire sequence of subflows from start to finish NOT in the loop, it runs all the way through seamlessly from start to finish. & I can repeat it this way over and over again with no issues.

 

It's only when I loop it and go back through for the second pass that it gets stuck at this step.

 

Here's another weird part: On this subflow it gets stuck on, it still runs through several of the first few steps. This subflow opens a webpage, clicks on a few web page elements, then clicks on a UI element button on the website to start an upload.

 

*It is only the "Click UI element" step that it gets stuck on.* The other ones run fine on the 2nd pass.

 

It's something specific to "Click UI elements", as recorded by the desktop recorder. Another reason I know this is because earlier I had a version of this flow where one of the first steps was to click on a button on the website as a desktop recording where it was clicking on a UI element -- not a webpage element. And on THIS earlier step in the process, it failed. I switched this to a webpage element just to see what happens, and it gets past that point. It's only the "Click UI element" steps where it just stays stuck in No Man's Land forever.

 

Here are the details of this particular UI element: " > document[Class="Chrome_RenderWidgetHostHWND"] > list:eq(0) > listitem:eq(1) > button[Name="laptop My device"]"

 

And here is a screenshot showing more details as well:

 

UI element image 1.png

 

I exit out of all subflows after completing the sequence, so that's not the problem.

 

I also provide a decent wait time before initiating the 2nd pass (about 30 seconds.)

 

I've tried 10 different approaches to work around this and NOTHING is working.

 

Any ideas on how I could make this work where it loops through & successfully clicks on the UI elements on the 2nd, 3rd, etc pass, without just getting stuck there?

 

If I had to guess, I would guess there's some sort of internal signal sent, in the program, after it clicks on that UI element, that basically says: "Yep, this got clicked on already," and that's why it always work the first time when I start the flow, but always gets stuck on the 2nd pass through.

 

It's a flow that in total has about 1100 steps (not a typo) for each pass. And it passes through a max of 10 times, depending on if the loop conditions are met that many. Not sure if that matters.

 

Any ideas on how I could make this work would be greatly appreciated. This is literally the LAST thing I need to figure out to make this flow work perfectly. And I'm stuck & feel like I'm all out of ideas.

 

Thank you.

I have the same question (0)
  • WorkingForFood Profile Picture
    99 on at

    Are you confident this UI Element " > document[Class="Chrome_RenderWidgetHostHWND"] > list:eq(0) > listitem:eq(1) > button[Name="laptop My device"]" does not change between iterations?

     

    Someone else was working through reusing UI Elements earlier this week (here) but that was specific to Excel.

     

    You could try using a breakpoint right before your Click UI Element action to confirm the state is the same with each iteration.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard