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 / Failed to write in tex...
Power Automate
Answered

Failed to write in textbox (failed to get window) - parent screen issue

(0) ShareShare
ReportReport
Posted on by 13

Hi,

Does anyone have any advice on how to resolve an issue with the PAD flow not being able to select the window to populate a textbox?

 

We run this PAD flow unattended from a scheduled cloud flow, and it is working on one machine-runtime. I'm in the process of migrating to a second VM to run on and since changing the connection the flow is failing.

UI Selector: (Test works on original VM, on second VM that parent selector is not found)

TWarren_1-1692217845698.png

 

UI Test fails on new VM:

TWarren_2-1692218313190.png

 

 

The window trying to write to:

TWarren_0-1692217051777.png

 

Error Details:

Problem while executing action 'PopulateTextField'. Failed to write in textbox (failed to get window)

Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to write in textbox (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.PopulateTextFieldInWindow(UIRuntimeElement element, String textToFillIn, Int32 operationMode, Int32 mouseOperationMode)
--- 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)
--- 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 Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PopulateTextFieldInWindow.<Execute>b__17_0(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.PopulateTextFieldInWindow.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PopulateTextFieldInWindow.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • Verified answer
    TWarren Profile Picture
    13 on at

    Ok, when I look at task manager, I see that the edge instance name includes the logged in profile. on my new VM I have not signed into Edge so the window name does not match. I'll change the UI element operator to be Starts With and adjust appropriately.

     

    T.

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
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard