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
Answered

Power Automate desktop flows

(0) ShareShare
ReportReport
Posted on by 13

Hello can some please help me with this issue.

So I have flow on power automate desktop and it do a manual trigger form power automate cloud and from there I run the desktop flow and I'm run it on my Virtual Citrix machine but I I'm having this error I listed blew. There UI element is failing when it suppose to click the Button to run  my VBA macro on the excel sheet so it will start running but its give error. I have try a lot wait to make it work but its not working. so ca some please help me with it.

 

Thanks!



Problem while executing action 'Click'. Click failed (failed to get window)

Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click failed (failed to get window) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException' was thrown.
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.WindowContainers.FindWindowWithException(Func`1 getWindow, String windowSelector, Boolean bringToFront)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.LocalAutomationRuntime.ClickElementInWindow(UIRuntimeElement element, Int32 offsetX, Int32 offsetY, MouseClickTypeEnum clickType, RectangleEdgePointEnum 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)
at generatedProxy_2.ClickElementInWindow(UIRuntimeElement , Int32 , Int32 , MouseClickTypeEnum , RectangleEdgePointEnum )
--- 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 generatedProxy_1.ClickElementInWindow(UIRuntimeElement , Int32 , Int32 , MouseClickTypeEnum , RectangleEdgePointEnum )
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.<Execute>b__25_1(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)

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Kush12 

     

    while running, is the UI Element based window is coming in foregound before bot tends to click the button ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Kush12 Profile Picture
    13 on at

    Hi @Nived_Nambiar 

     

    Yes the excel spreadsheet open up in Citrix  but when it suppose to click the button which is a VBA macro user form and it a start button but it fail to click it. But my UI element desktop flow run fine on my local desktop but the time i try to make it run on the Citrix virtual machine it fail to click and not bale to proceed to next step. 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Is PAD installed on your desktop, or on the VM? If it's on your local desktop, have you installed the agent for virtual desktops on the Citrix VM? See here for reference: https://learn.microsoft.com/en-us/power-automate/desktop-flows/virtual-desktops

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

  • Verified answer
    Kush12 Profile Picture
    13 on at

    Thanks for the help I was able to resolve the issue it was issue with my excel window title but thank you for the help. 

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard