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 / Power Automate Flow fa...
Power Automate
Answered

Power Automate Flow failed Error in 'Main', action #xx 'Click UI element in window'

(1) ShareShare
ReportReport
Posted on by 18
Hi everyone,
 
I have a PAD flow, when I click on the Run button, sometimes it show the error below:
Power Automate Flow failed Error in 'Main', action #xx 'Click UI element in window'
Even though it finds the UI element in window.
I tried to adjust the screen resolution used (following this topic https://community.powerplatform.com/forums/thread/details/?threadid=c543b115-6639-4618-8293-f2bea8a9b65d and https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/set-screen-resolution-unattended-mode) but still get the same error sometimes
If I click on the Edit button then run the flow, it works fine without any issues.
Do you know how to fix in this case?
Thank you so much for your helping.
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,535 Super User 2026 Season 1 on at
    When you run the flow from the Power Automate Desktop application its always Attended mode. So your flow is not running Unattended in this case. Unattended means that you are not logged into the computer while the flow runs so you will not be able to see what is happening in real time. 

    So the resolution should not be an issue since its the same as when you run in in Edit window when it works fine.

    I think the flow just cant find the UI element. Does you flow have any "Wait for window content" -actions? The flow runs much faster when you run it from the main window (without Edit window open). So it might be that your UI elements doesn't have enough time to load and that's why the flow fails to find the window.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard