web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : gJjeOYWeAUAm0E8ziLT1ka
Power Automate - Building Flows
Unanswered

Cancel button failure

Like (0) ShareShare
ReportReport
Posted on 8 May 2024 16:18:26 by 2

Hi,

 

I have a problem after creating flow in PA. While launching flow PA cannot click on "X" button to close window. Can you help me?

 

Best regards,

 

Adam

  • ac38 Profile Picture
    2 on 08 May 2024 at 16:31:11
    Re: Cancel button failure
    Correlation ID: 34f84dd9-e7f5-43a3-ab94-a76a1fca468f
    
    Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.: Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Unable to press button (button not found ) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException: An exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.ElementNotFoundException' was thrown.
     at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.AutomationRuntimes.UIAutomationRuntimeBase.RetractElement(IntPtr windowHandle, String selector)
     at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.AutomationRuntimes.UIAutomationRuntimeBase.PressButtonInWindow(IntPtr windowHandle, String selector)
     at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.LocalAutomationRuntime.PressButtonInWindow(UIRuntimeElement element)
    --- End of stack trace from the previous location where the exception occurred ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.UIAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
    --- End of stack trace from the previous location where the exception occurred ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
     in generatedProxy_2.PressButtonInWindow(UIRuntimeElement )
    --- 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 the previous location where the exception occurred ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
     in generatedProxy_2.PressButtonInWindow(UIRuntimeElement )
     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.PressWindowButton.Execute(ActionContext context)
     --- End of internal exception stack trace ---
     at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)
     at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Loading complete