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 / UI automation error: U...
Power Automate
Answered

UI automation error: Unable to input a textbox

(0) ShareShare
ReportReport
Posted on by 19

Hello.

Now I'm creating a desktop flow to input daily actual worktime to a system from a CSV file.

As you can see in the attached image, the system has a spec that can input workload for multiple projects.

Because there are multiple dates and staff in the CSV data, I used loop action in my desktop flow.

When I run the flow, the firstinterface.PNGキャプチャ.PNG loop process executed successfly,

but when the date and the staff field was changed and the process is going to input "project code", this error occured (attached)

Does anyone know what should I do?

 

I have the same question (0)
  • OkanAutomation Profile Picture
    107 on at

    If it found the first element. That would mean your selectors are not dynamic. 

    You need a way to make the selectors of your UI element dynamic.

     

    To make selectors dynamic i would suggest reading some in the documentation. Or you can send a screenshot of your UI Element in the right hand panel with the Selectors, I'll see if I can help.

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

    Hi @Xiaolan as @OkanAutomation  wrote you need to learn about making selectors dynamic, few palces to start:

     

    Microsoft documentation - get familiar with it:

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

     

    Search this forum, there are many simialr psots like this one:

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Dynamic-Selector-variable-in-selector-in-Desktop-Automation/td-p/716646

     

  • Xiaolan Profile Picture
    19 on at

    Thank you for your reply.

     

    This is the screen capture.

    Xiaolan_0-1673575791285.png

     

    This is the previewed selector.

    > pane[Class="BrowserRootView"][Name="日報入力 - Microsoft Edge"] > pane[Class="NonClientView"] > pane[Class="GlassBrowserFrameView"] > pane[Class="BrowserView"] > pane[Class="SidebarContentsSplitView"] > pane[Class="SidebarContentsSplitView"] > pane[Class="SidebarContentsSplitView"] > pane[Class="SidebarContentsSplitView"] > pane[Class="View"] > document > group[Id="updateForm"] > table[Class="list"] > dataitem > dataitem > table[Class="fixed_row"][Id="table1"] > dataitem > dataitem > edit[Id="constNo_0"]

     

    As It doesn't work in 2nd or more time loop, I captured the UI element in the refreshed page again.

    (So, 2 selectors are set for the UI element)

    But It also failed.

    I compared these 2 selectors, the selector for the default page and the selector for the changed page, in detail but I couldn't find any difference. I even used fc command to compare them, but the result was the same.

  • Xiaolan Profile Picture
    19 on at

    I've changed the attribute "ID" from "ConstNo_0" to "%'ConstNo'%%variable%" even though the UI element for 1st row shows "ConstNo_0" in every display.

    Then, the 2nd loop went successfly. But 3rd loop failed again. Still I'm struggling to solve this error...

  • Xiaolan Profile Picture
    19 on at

    Hi

    I've changed the attribute "ID" from "ConstNo_0" to "%'ConstNo'%%variable%" even though the UI element for 1st row shows "ConstNo_0" in every display.

    Then, the 2nd loop went successfly. But 3rd loop failed again. 

    So I removed all the checks on the elements except the 1st and the last element. 

    Then every loop ran successfly without any fault.

    The problem was solved, thank you very much for your help!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard