RPA is working fine in the server. but when i call from the cloud it is throwing error below.
Problem while executing action 'Click'. Double click failed (error while clicking)
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Double click failed (error while clicking) ---> 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 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.RemoteAutomationRuntimeProxy.HandleResult[T](Func`2 func)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.<>c__DisplayClass21_0.<Execute>b__0(IAutomationRuntime r)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`1 action, UIControl control)
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'm also experiencing a related issue.
I have a process that runs unattended within windows server 2016 environment. The process clicks often during the whole time, but, only in the end occured to have some trouble with UIPI.
I think the issue is not in the user interface element, because if it were, i would receive the error message signalizing it.
This bug is already tracked? Couldn't find something that specific.
Problema ao executar a ação 'Click'. Clicar falhou (erro ao clicar)
Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Clicar falhou (erro ao clicar) ---> System.InvalidOperationException: 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.
em WindowsInput.WindowsInputMessageDispatcher.DispatchInput(INPUT[] inputs) na /_/src/libs/H.InputSimulator/WindowsInputMessageDispatcher.cs:linha 37
em WindowsInput.MouseSimulator.MoveMouseToPositionOnVirtualDesktop(Double absoluteX, Double absoluteY) na /_/src/libs/H.InputSimulator/MouseSimulator.cs:linha 163
em Microsoft.Flow.RPA.Desktop.UIAutomation.DesktopCore.InputSimulator.MouseSimulatorProxyBase.MoveMouseToPosition(Point point)
em Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.AutomationRuntimes.UIAutomationRuntimeBase.ClickElementInWindow(IntPtr windowHandle, String selector, MouseClickTypeEnum clickType, RectangleEdgePointEnum elementRectangleEdgePoint, Int32 offsetX, Int32 offsetY)
em Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.LocalAutomationRuntime.ClickElementInWindow(UIRuntimeElement element, Int32 offsetX, Int32 offsetY, MouseClickTypeEnum clickType, RectangleEdgePointEnum elementRectangleSubsector)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em Microsoft.Flow.RPA.Desktop.UIAutomation.Runtime.Router.UIAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
em generatedProxy_2.ClickElementInWindow(UIRuntimeElement , Int32 , Int32 , MouseClickTypeEnum , RectangleEdgePointEnum )
--- Fim do rastreamento de pilha de exceção remota ---
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.RemoteAutomationRuntimeProxy.Invoke(MethodInfo targetMethod, Object[] args)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Reflection.DispatchProxyGenerator.Invoke(Object[] args)
em generatedProxy_2.ClickElementInWindow(UIRuntimeElement , Int32 , Int32 , MouseClickTypeEnum , RectangleEdgePointEnum )
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.<Execute>b__25_1(IAutomationRuntimeProxy r, UIRuntimeElement e)
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`2 action, UIControl control, Boolean logAction)
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
--- Fim do rastreamento de pilha de exceções internas ---
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.ClickElementInWindow.Execute(ActionContext context)
em Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
Can I Know how it got resolved, tried restarting server but same error
Good to know that it worked !
Thank you for your reply. Yes I logged into the server. after restarting the server it worked fine. looks like cloud also taking some time to reflect the desktop changes.
Hi @mitsurya
It seems like an issue with permission.
Could you confirm, whether you are logged in while running the bot in server as you said it working fine in server ?
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional