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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The problem lies with ...
Power Automate
Unanswered

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard