Skip to main content
Community site session details

Community site session details

Session Id : jfPL/5O6HN4ajULFLUPvcW
Power Automate - Power Automate Desktop
Unanswered

Error running flow in Power Automate Desktop, through a recurrence in Power Automate Web

Like (0) ShareShare
ReportReport
Posted on 23 Aug 2023 13:36:57 by 27

I need to run a daily flow in Power Automate Desktop on a virtual machine, where basically this flow will open a web page and collect information from a specific site. 

The real problem is that when this flow in Power Automate Web runs, the following error is shown:


Problem while executing action 'Click'. Click link on web page failed.

Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Click link on web page failed. ---> System.Exception: Some simulated input commands were not sent successfully. The most common reason for this happening are the security features of Windows including User Interface Privacy Isolation (UIPI). Your application can only send commands to applications of the same or lower elevation. Similarly certain commands are restricted to Accessibility/UIAutomation applications. Refer to the project home page and the code samples for more information.
at WindowsInput.WindowsInputMessageDispatcher.DispatchInput(INPUT[] inputs)
at WindowsInput.MouseSimulator.MoveMouseToPositionOnVirtualDesktop(Double absoluteX, Double absoluteY)
at Microsoft.Flow.RPA.Desktop.UIAutomation.DesktopCore.InputSimulator.MouseSimulatorProxyBase.MoveMouseToPosition(Point point)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.PerformClickAtElement(IWebAutomationBrowser browser, String cssSelectorForElement, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.<>c__DisplayClass41_0.<ClickLinkOnWebPageMouse>b__0(Boolean _, IWebAutomationBrowser browser)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.<>c__DisplayClass18_0`1.<ExecuteWebAutomationActionCore>b__0()
at Microsoft.Flow.RPA.Desktop.UIAutomation.Core.Utilities.Clock.Execute[T](TimeSpan timeout, TimeSpan period, Func`1 action, Func`2 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ExecuteWebAutomationActionCore[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction, Predicate`1 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ExecuteWebAutomationAction[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ClickLinkOnWebPageMouse(WebBrowserInfo webBrowserInfo, String cssSelectorForLinkElement, WebAutomationOptions webAutomationOptions, ClickType clickType, RectangleEdgePoint mousePointRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.WebAutomationRuntimeRouter.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_3.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
--- End of remote exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(ISerializer serializer, RemoteMethodCallResponse response, Type expectedResultType)
at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.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.ClickLinkOnWebPage(WebBrowserInfo , String , String , Boolean , TimeSpan , Int32 , Boolean , ClickType , RectangleEdgePoint , Int32 , Int32 )
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass7_0.<ClickLinkOnWebPage>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass34_0.<ExecuteSafe>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe[T](Func`2 action, TimeSpan timeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe(Action`1 action, TimeSpan timeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ClickLinkOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorOfElementToClick, String dialogButtonToPress, Boolean waitForPageToLoad, TimeSpan waitForPageToLoadTimeout, Int32 courseOfActionIfDialogAppears, Boolean physicalMouseClick, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.<Execute>b__37_0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.<>c__DisplayClass5_0.<PerformWebAutomationWithLogging>b__0(IWebAutomationRuntime s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.PerformWebAutomationWithLogging[T](Func`2 action, WebAutomationRuntimeLogData requestData, Func`3 resultData)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

Alguém poderia me ajudar com esse erro?

  • Srini007 Profile Picture
    3,188 Super User 2025 Season 2 on 23 Aug 2023 at 15:05:27
    Re: Error running flow in Power Automate Desktop, through a recurrence in Power Automate Web

    Hi @guinew21 

     

    After looking provided information, I feel that you are opening a website and In that you are trying to click on a link which is getting failed. If this is the one, then you could probably check below things

     

    • Check if the link is dynamically changing, then you have to check two elements and see if there are chances to build dynamic selector for that
    • check if the link is appearing taking some time then you can introduce some delay and check
    • Also, you can use wait for webpage content and then you can proceed to clicking on the element

    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

     

    Thanks,

    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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2