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 / UI element stops being...
Power Automate
Unanswered

UI element stops being recognized mid flow.

(0) ShareShare
ReportReport
Posted on by 16

My PAD stops recognizing UI elements mid flow. The same actions recognized it earlier in the flow but when repeated it eventually stops. This Friday my PC needed to get re-imaged and it was working perfectly before then. Since then the flow gets an error. I have tried a variety of things, I created a new flow and same issue. It specifically doesn’t work with excel. After it stops working I can not select a new UI element, the window just isn’t recognized.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It is likely not that PAD does not recognize elements, but that they change mid way through. If you are automating the Excel UI (which is in general not recommended, really), the file name is in the title of the window element. So, every time you open a different document, the element will change. You will need to modify the selector to not contain the file name for it to work.

     

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

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

  • Tvance Profile Picture
    16 on at

    I’m using one excel sheet. One file. Not changing any of the elements. I’ve had that occur through trial and error and have fixed it. This though after I get the “window not found” error, will not allow me to use the UI selector on excel. It doesn’t recognize the Excel even exists. The highlighter will light up everything but the excel spreadsheet.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Okay, this sounds more like a bug then. Can you check if there are any error logs in the Application logs in the Windows Event Viewer? Perhaps some PAD component is crashing.

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Can you give me an image of your Excel selector if you don't mind? this also does indeed sound like a UI element spy bug, I've yet to encounter it on UI, usually only occurs with the browser one, so I'm curious and would like to see if I could replicate this on my side.

  • Tvance Profile Picture
    16 on at

    I was not able to notice anything that stood out in the event viewer. But I can say that it stops recognizing any UI element mid way through but I can still use the foreground to do things. But the excel in web is working just fine. 

  • Tvance Profile Picture
    16 on at

    Sorry for the late reply, This is the result that i'm getting. When using the UI selector i can select anything else that is available. However it stops working for excel. I was able to select it when it first boots up an excel document. But as the script is running it will stop half way through and when i try to select a new UI element it won't even allow me to. When i re-run the script, the first time it comes accross that UI Element it won't recognize it either, but it did just a few seconds prior. If there is a fix that would be great. But it seems like it's more of a bug from the most recent updates.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It might be a bug and it might make sense reporting it to MS support.

    On a side note, though, why exactly are you automating the Excel UI? It should generally be avoided, as using the native Excel actions + some scripting (for the stuff that cannot be done natively) works much better and is much more stable.

  • Tvance Profile Picture
    16 on at

    I’m still pretty new to it. So I’m not aware of all the things I could do. But I’m learning as I go. I will look into that more though. Thank you. I will also report it to Microsoft because it does seem like a 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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard