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 Desktop...
Power Automate
Suggested Answer

Power Automate Desktop – Excel worksheet (Sheet1) UI element suddenly not found

(0) ShareShare
ReportReport
Posted on by 2

Hi Everyone,

I have a Power Automate Desktop flow that was working fine until Monday, and now it suddenly fails without any changes on my side.

The flow fails with element not found when trying to detect an Excel worksheet element.

The selector looks like this:

pane[Class="XLDESK"]
> pane[Class="ExcelGrid"]
> pane[Id="Sheet1"]
> image[Name="Picture 2"]

It already fails at: pane[Id="Sheet1"]

Context


  • Excel Desktop (Microsoft 365)

  • Flow uses UI automation

  • Trying to take a screenshot of a live picture (camera tool) in Excel

  • Worksheet is already set as active before this step

  • The Excel file and UI are visible on screen

  • The flow worked fine until Monday (no changes made)

What I tried

  • Set active worksheet before the step
  • Repair / re-capture selector
    • Tried different attributes (Id / Name)  Still failing at the worksheet level.

Has anyone experienced this recently?
Is the worksheet (Sheet1) selector no longer reliable in PAD, especially when working with live pictures?

(Screenshots of the error attached)

Screenshot 2026-0...
Screenshot 2026-0...
Screenshot 2026-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,543 Super User 2026 Season 1 on at
    Since it fails at pane[Id="Sheet1"] then it sounds like the selector cant find that sheet. Have you or someone else changed the name of that worksheet to something else than the default Sheet1? Even though you might think that it doesn't refer to the name since the attribute is "Id" it does in fact refer to the name you have given to the worksheet.


    Try with the Ordinal = 0. That means it takes the first worksheet regardless of its name or id.

    If that doesn't work try capture the element with the new UIA3 Raw -capturing mode instead of the default UIA. It was added in this months patch for 2.68.237.26118 version of PAD

    Press "Add UI element"


    Three dots select UIA3 Raw and capture the element.

     
    btw your screenshots were not visible at the time of my response.
  • MK-29051322-0 Profile Picture
    2 on at
    @eetuRobo thanks for replying, the ordinal did work now after testing again I see that it fails on Picture 
    i added the previous attachments again. unfortunately I dont have access to UIRaw yet, may be due to regional releases
    Screenshot 2026-0...
    Screenshot 2026-0...
    Screenshot 2026-0...

    Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

  • Suggested answer
    eetuRobo Profile Picture
    4,543 Super User 2026 Season 1 on at
    Seems like changing it to Ordinal did work as far as now it found the worksheet (or at least a worksheet). So now it seems like the name attribute on the picture element has changed. Or with the Ordinal being 0 it focused on different sheet which does not have the picture element in it.

    For troubleshooting what if you remove the Image element and use Test functionality to then? Like so:


    Does it then find the correct worksheet where the picture is? Like so:


    if it does then the image element is different than your selector. If it does not find the correct sheet then you might have multiple Excel workbooks / sheets open and you need to not use the ordinal but the name or id to match the correct worksheet. 

    What if you recapture the element does the Image -element give some other value in the Name attribute than "Picture 2"? Maybe try with "Picture 1" name?
     
    If you have multiple Excels open try closing all other excel files and just leave that one open and see if it finds it then.

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 464

#2
Haque Profile Picture

Haque 431

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard