Hello,
I’m facing a problem with executing an automation on a remote machine that includes user interface automation (many activites such as type into, click, send hot key, attach window…)
So my robot launch an application on the machine and it needs to enter credentials. An exception occured which is “cannot find window” so i increased the timeout of the attach window activity (because the application took time to open) once i did that a new exception occured which is “unable to bring the target application to foreground”.
I’m using UiPath community edition and the input method property for my activities is set to Hardware events.
My question is what are the requirements to execute a robot that includes UiAutomation activities in unattended mode on a remote machine ?
Is the problem related to a selector ?
Is changing the input method property to Simulate or SendWindowMessage will solve the problem?
Best regards.
Anil_G
(Anil Gorthi)
December 9, 2022, 10:21am
2
Hi @ahmed.alakhal-benltaifa
Either use simulate
or if you want to use hardware events then on orchestrator in robot settings switch on the ‘Login to console’ option
and also try using activate after you attach to get the application to foreground
cheers
Activate activity doesn’t solve the issue.
Anil_G
(Anil Gorthi)
December 9, 2022, 1:14pm
4
@Ahmed_Alakhal_ben_ltaifa
Did you try with Robot settings or by changing to simulate?
Is the chrome extension installed on it?
And please check start up services on it if any start up service is blocking the UI interaction
cheers
I just changed the input method to simulate.
I have UiPath web automation 22.10 installed in chrome.
Where Can i change the robot settings ?
What are the names of these service.
Studio is installed in user mode.
Thanks.
Anil_G
(Anil Gorthi)
December 9, 2022, 1:58pm
6
Hi @Ahmed_Alakhal_ben_ltaifa
The Robot should be installed in service mode for unattended
That should solve your issue
For Robot Settings
Orchestrator → Robots → Edit → Advanced settings → Log into console
For more info
Hi @codemonkee & @LeftBrainCo !
Let me try to explain how User Mode & Service Mode are different:
User Mode - All the Robot’s components(Service, Executor, Tray) live on the user’s session and run with current user’s permissions. Also, the Service is not started automatically. It’s started whenever you first open the Tray and it’s using the same authorization as the Tray. When you click to start a process, the Tray goes to the Service and the Service spawns an Executor (with the same permissi…
cheers
I want to mention that the robot is launched with an execution script : "UiRobot.exe execute --file “package file generated from studio to local repository”
Is it considered unattended mode?
How to install studio in service mode or Can i Switch from user to service with community édition?
Thanks for your help.
Anil_G
(Anil Gorthi)
December 9, 2022, 2:32pm
8
@Ahmed_Alakhal_ben_ltaifa
So basically you kept the screen open and ran the bot and it is failing?
If vm is open it should not fail unless you minimize the screen
Cheers
The VM is open.
Why it can’t work when the window is minimized
How unattended automations work on a VM?
Anil_G
(Anil Gorthi)
December 9, 2022, 2:52pm
10
Hi @Ahmed_Alakhal_ben_ltaifa
Unattended runs on service mode … and at that time also you don’t login …bot logs in and does the work
Attended on the other hand runs when screen is open by you and kept open
So you don’t minimize them
cheers
cheers
Unattended robots Can only be launched from orchestrator ?
The script that i m using won’t work in unattended mode ?
Thanks
What if non user is logged into the VM?
Anil_G
(Anil Gorthi)
December 9, 2022, 3:34pm
14
Hi @Ahmed_Alakhal_ben_ltaifa
Yes unattended is only launched through orchestrator.
Unattended means the system is available and user is not logged in yet. Then bot logs in and does the task and comes out…
What you are doing is starting a bot using command prompt and it is not unattended
Hope this clears
cheers
So what i’m doing is like launching the bot in attended mode this mean that all ui activities won’t work unless the vm screen is open.
Without orchestrator my bot won’t work correctly even if i install UiPath in service mode ?
Thank you for your response.
Anil_G
(Anil Gorthi)
December 9, 2022, 4:11pm
16
Hi @Ahmed_Alakhal_ben_ltaifa
You can give it a try in service mode as well…But to say unattended run it should run from orchestrator on the machine
You can look at this guide for running automation while minimized
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
And even this has a limitation just so that you know
cheers
system
(system)
Closed
January 26, 2023, 9:39am
17
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.