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 on Wind...
Power Automate
Unanswered

Power automate on Windows VM

(0) ShareShare
ReportReport
Posted on by 6

I am running power automate desktop on windows VM.

My script does the following work:

 

  • launches the browser, launch my website
  • Enters the credentials.
  • Click the submit
  • Records the page load time.

 

I am running this script in loop , it runs every 10 mins. Reason for running it in VM is to run irrespective of whether my laptop is on or off.

 

Scripts runs perfect, when i open a remote desktop connection to VM and keep it open.

If i close the remote desktop connection to VM script is failing to enter credentials.

It launches the browser but it is not able to enter credentials in the specified UI elements.

I feel there is some issue with UI elements.

I need help.

 

Any leads??

 

Error message:

Correlation Id: e30caec9-81bb-46ce-b0f5-3a008d571694

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.: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to write text in form field. ---> 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.WebAutomationRuntime.PerformClickAtElement(IWebAutomationBrowser browser, String cssSelectorForElement, ClickType clickType, RectangleEdgePoint mousePositionRelativeToElement, Int32 offsetX, Int32 offsetY)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationRuntime.<>c_DisplayClass36_0.<PopulateTextFieldOnWebPagePhysical>b_0(Boolean wait, IWebAutomationBrowser browser)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationRuntime.<>c_DisplayClass11_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.WebAutomationRuntime.ExecuteWebAutomationActionCore[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction, Predicate`1 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationRuntime.ExecuteWebAutomationAction[T](IWebAutomationBrowser webBrowserInstanceVariant, WebAutomationOptions webAutomationOptions, Func`3 coreFunction)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationRuntime.PopulateTextFieldOnWebPagePhysical(IWebAutomationBrowser webBrowserInstanceVariant, String cssSelectorForFormFieldElement, String textValue, Boolean emulateTyping, Boolean unfocusTextFieldAfterFillingIt, WebAutomationOptions webAutomationOptions, PopulateTextModeEnum operation)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebAutomationRuntime.PopulateTextFieldOnWebPage(IWebAutomationBrowser webBrowserInstance, String cssSelectorForFormFieldElement, String textValue, String dialogButtonToPress, Boolean emulateTyping, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears, Boolean unfocusTextFieldAfterFillingIt, Int32 operationMode, Boolean usePhysicalKeyboard, TimeSpan waitForPageToLoadTimeout)
at Microsoft.Flow.RPA.Desktop.UIAutomation.AutomationServer.Host.WebAutomationRuntimeService.<>c_DisplayClass24_0.<PopulateTextFieldOnWebPage>b_0(IWebAutomationBrowser b)
at Microsoft.Flow.RPA.Desktop.UIAutomation.AutomationServer.Host.WebAutomationRuntimeService.<>c_DisplayClass31_0.<GetBrowserAndExecute>b_0(IWebAutomationBrowser b)
at Microsoft.Flow.RPA.Desktop.UIAutomation.AutomationServer.Host.WebAutomationRuntimeService.GetBrowserAndExecute[T](Func`2 action, WebBrowserInfo browserInfo)
at Microsoft.Flow.RPA.Desktop.UIAutomation.AutomationServer.Host.WebAutomationRuntimeService.PopulateTextFieldOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorForFormFieldElement, String textValue, String dialogButtonToPress, Boolean emulateTyping, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears, Boolean unfocusTextFieldAfterFillingIt, Int32 operationMode, Boolean usePhysicalKeyboard, TimeSpan waitForPageToLoadTimeout)
--- End of remote exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(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.PopulateTextFieldOnWebPage(WebBrowserInfo , String , String , String , Boolean , Boolean , Int32 , Boolean , Int32 , Boolean , TimeSpan )
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c_DisplayClass25_0.<PopulateTextFieldOnWebPage>b_0(IWebAutomationRuntimeService s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c_DisplayClass32_0.<ExecuteSafe>b_0(IWebAutomationRuntimeService 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.PopulateTextFieldOnWebPage(WebBrowserInfo webBrowserInfo, String cssSelectorForFormFieldElement, String textValue, String dialogButtonToPress, Boolean emulateTyping, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears, Boolean unfocusTextFieldAfterFillingIt, Int32 operationMode, Boolean usePhysicalKeyboard, TimeSpan waitForPageToLoadTimeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.PopulateTextFieldBase.<Execute>b__37_0(IWebAutomationRuntimeService s)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.<>c_DisplayClass4_0.<PerformWebAutomationWithLogging>b_0(IWebAutomationRuntimeService 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.PopulateTextFieldBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.PopulateTextFieldBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

 

 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @subhac 

     

    Seems like the simmilar issue posted here some days back 

     

    Refer this 

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Error-User-Interface-Privacy-Isolation-UIPI/td-p/2079630

  • subhac Profile Picture
    6 on at

    It did not work even after rebooting the VM

     

  • subhac Profile Picture
    6 on at

    Any other solutions? I tried focus window as well.

  • subhac Profile Picture
    6 on at

    Any clues please

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @subhac 

     

    Would it be any permission issue ?

     

    Also are you sure you are running bot in unattended mode?

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    I got a similar issue with one or two of my flows.

    This has happened in one day only, never before (flows executed thousands of times already, no changes to flows nor the machine) and never after (a week now).

    I guess there was some Windows glitch or similar. However, I keep monitoring my logs just in case it comes back 

    will fail a support ticket straight away if it reoccurs

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard