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 / Excel related Issue (C...
Power Automate
Unanswered

Excel related Issue (Click UI element in window Error Message Click failed (failed to get window))

(0) ShareShare
ReportReport
Posted on by 2

The workflow was designed in Power Automation and downloaded from the ERP system, filtered according to the business requirements. The workflow ran fine in the testing instance but when I run it on the live instance, I get Excel related errors. (ActionName Click UI element in window Error Message Click failed (failed to get window)). and Excel version differs between the two instances. Please assist me in resolving this issue.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    This is likely related to the fact your Window selector contains the title of your Excel document. Also, the name of the window might be different if the versions of Excel are different on the two instances.

     

    The first thing you need to do is look at the window element and see if it contains the title. If it does, adjust the selector so it does not contain it anymore. See this screenshot on how to find it: 

    Agnius_0-1694154591591.png

     

    It is captured for a Microsoft Edge window, but the idea is the same with Excel windows, too.

     

    Also, it might very well be that further elements will also not work due to the different versions of Excel in the two instances. You must always make sure that you use the same version during development and testing, as the one that you have in live/production. Otherwise, you will always have issues upon deployment.

     

    I suggest you recapture all of your UI elements in the "live" environment.

    -------------------------------------------------------------------------
    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.

  • Ashwini_Mali Profile Picture
    2 on at

    @Agnius thank you for support ,
    I attempted to add a new UI element to a live instance but was unable to do so. When I tried to set a UI element for a single column, it ended up selecting the entire table instead.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If the same approach that you used in your development environment does not work in the live environment, it likely is because of the different versions of the target application. If the version in the development environment works better, is there a way to set up the live environment with the same version?

     

    Alternatively, if it's a filter that you want to implement, you might also be able to do that via VBscript or PowerShell instead of using the Excel UI. That's the recommended approach anyway, because using the Excel UI usually results in fragile flows. Scripting is much more efficient and stable. 

    -------------------------------------------------------------------------
    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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard