Hi,
I'm using an remote windows server to run some scheduled desktop workflows triggered by the windows scheduler.
When i'm with the RDP opened, the flow succesfully ran the UI action, but when i'm not, its returns:
Problema ao executar a ação 'PressButton'. Falha ao pressionar botão (erro ao pressionar botão)
Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Falha ao pressionar botão (erro ao pressionar botão) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.OperationInNonInteractiveModeException: Can't use this action in non interactive mode
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Utilities.UIAutomationUtilities.EnsureThatDesktopInteractionIsPossible(UIATypeEnum uiaType, Boolean isLegacyWindowAction)
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.LocalAutomationRuntime.PressButtonInWindow(UIRuntimeElement element)
--- 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.Modules.UIAutomation.Common.Proxy.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)
--- 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 Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`2 action, UIControl control, Boolean logAction)
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)
--- Fim do rastreamento de pilha de exceções internas ---
em Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PressWindowButton.Execute(ActionContext context)
em Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
The server's user is always logged on.

Report
All responses (
Answers (