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 / 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,204 Super User 2025 Season 2 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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard