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 / Failed to Press Button...
Power Automate
Answered

Failed to Press Button (Failed to get window) Error

(0) ShareShare
ReportReport
Posted on by 37

Hey everyone, 

 

This has been one of the most frustrating aspects of Power Automate since I began using it pretty recently. I have an entire workflow that is comprised of six sub flows that each download a different report, and run consecutively. Whenever I have tested them all together, it works perfectly fine with no errors. However, when I want to just download one or a few specific reports, and disable a few of the other sub flows from the main page, I get this error below when the flow should be pressing a certain button or select a textbox. 

alexj42_0-1689105279390.png

Not sure why it would work perfectly fine all together, then doesn't work just a couple minutes later. What I have been doing to try to fix this is to manually change/add the UI element by going into the parameters screen, selecting the button/textbox, then going into my legacy app and clicking the button I need. This works for a little bit, but then when I want to try to run it by itself or with one or two other reports, I just get that same error again. 

 

Please let me know if anyone knows of any solutions or workarounds to this, thank you.  

 

I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The error about failing to get a window is usually related to the possibility of the window selector being dynamic - changing with every instance. For example, it may contain a session number in its name, or some Id that changes each time you open the app. You would need to modify the selector and remove any parts of it that change with each session.

     

    See here for reference on how to modify selectors in PAD: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

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

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

  • alee001 Profile Picture
    409 on at

    I also face this problem. Even if I reset the button, there is no error in the repair execution today, but an error is reported in the next day. I should think it is probably a [Press button] bug?

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard