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 / The problem lies with ...
Power Automate
Answered

The problem lies with the "UI automation" step within the "If Window Contains" condition.- Powerautomte desktop flow

(0) ShareShare
ReportReport
Posted on by 203

Hi Everyone,

 

Specifically, the problem lies with the "UI automation" step within the "If Window Contains" condition.

In this step, I have successfully captured an error from SAP. The desired behavior is that if the error occurs, the flow should proceed to the next loop. Conversely, if the error does not occur, the flow should continue executing the remaining tasks.

 

Regrettably, I have been experiencing failures in achieving this expected behavior. I have attached a screenshot - for your reference, which provides more context to the situation.

I kindly request your assistance in resolving this issue. Any guidance or suggestions you can provide would be greatly appreciated.

 

Best Regards 

Muzamil Ahmed

Capture.PNG
I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You need to add the Next loop action inside the If window contains condition here: 

    Agnius_0-1689742634135.png

     

    At this point, when there is no Next loop action there, it simply checks whether the window contains the error, but does not do anything about it. 

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ahmedmuz Profile Picture
    203 on at

    Hi Agnius

    I did that to it's not working ... It's not performing the ..wait for windows etc even when there is no error 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Does the flow stop? Is there an error in the flow itself?

  • Ahmedmuz Profile Picture
    203 on at

    Flow is not stop its going to the Step of 1.Wait 5 seconds. 2.wait for Window 3.Close window even if the error is captured that the issue,,,

    Is there any other way we can connect and share with you n show n explain ?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If you have a Next loop action inside the If window contains condition, but it still continues, it means that you have not captured your element correctly. Try using a Display message action inside the If window contains condition to test if it actually sees the window element. If it does, a pop-up will be thrown. You can verify it works. If it doesn't, you'll know it is related to the element being captured incorrectly.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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