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 / Correlation Id: 4cdaf8...
Power Automate
Unanswered

Correlation Id: 4cdaf8c2-b524-4ea4-9ef1-eacb6ac1df4d Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click failed (failed to get UI element) ---> Mi

(0) ShareShare
ReportReport
Posted on by 2

Hi support, any help is greatly appreciated.

I'm using recorder to automate a step by step capturing of SAP data and save it into Excel. After done the recording and play it, able to capture the first data and save it into Excel file, but when come to the 2nd step to switch to SAP screen, hit the below error :- 

Correlation Id: 4cdaf8c2-b524-4ea4-9ef1-eacb6ac1df4d

Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click failed (failed to get UI element) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.AutomationRuntimes.UIAutomationRuntimeBase.RetractElement(IntPtr windowHandle, String selector)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.AutomationRuntimes.UIAutomationRuntimeBase.ClickElementInWindow(IntPtr windowHandle, String selector, MouseClickTypeEnum clickType, RectangleEdgePointEnum elementRectangleEdgePoint, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.LocalAutomationRuntime.ClickElementInWindow(UIRuntimeElement element, Int32 offsetX, Int32 offsetY, Int32 clickType, Int32 elementRectangleSubsector)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.UIAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
--- End of remote exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.RemoteAutomationRuntimeProxy.Invoke(MethodInfo targetMethod, Object[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.<Execute>b__21_0(IAutomationRuntime r, UIRuntimeElement e)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`2 action, UIControl control, Boolean logAction)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,453 Super User 2026 Season 1 on at

    HI @KoayTengJin 

     

    The error is saying that it is unable to find the UI element to click for proceeding

    Maybe you can place some delay after the switching to SAP Screen, Or else check if you can make selector more dynamic?

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

  • KoayTengJin Profile Picture
    2 on at

    Dear Srini,

     

    Thanks for your advice. I've placed some delays but the problem still persists. How to make the selector more dynamic as I was using the recorder ? Appreciate your advice.

     

    Thanks & Best Regards,

  • Srini007 Profile Picture
    3,453 Super User 2026 Season 1 on at

    Hi @KoayTengJin 

     

    You can still edit your selector eventhough you used the recorder. So, basically recorder will select the available selector that can identify, In some cases we need to make selector more dynamic so that bot can identify the element without any issue

     

    To edit your selector, right side you can below icon, click on that

     

    Srini84_0-1698053645767.png

    UIElements will be displayed to you available in your flow, choose which uielement you are getting trouble and double click on that, so that you can see all the available selectors of that element. You need to choose right selectors according to your element. Eg:  as below

     

    Srini84_1-1698053773540.png

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard