I’m doing a process migration from an old environment to a new environment. In the old environment, the process runs well in both attended and unattended modes. But in the new environment, it runs only in the attended mode but fails in the unattended.
The bot fails to identify certain UI elements in the new environment with unattended mode and it fails. The selectors and all are fine. I have tried changing simulate, and send windows messages properties and it didn’t work at all. Also gave delays nothing worked.
Finally, I tried with ‘UiPath.UIAutomationNext.Activities.Nclick’ package activities and it also didn’t work.
Can it be any other issue related to the bot settings or anything?
I installed it in the service mode as you suggested and the process started to run in the orchestrator without the pending status but the process fails in unattended mode. The bot is unable to identify some UI elements.
As per the understanding, few activities are not performing as expected in unattended mode. Please validate the below steps,
Step1:
Please make sure to install the robot in the service mode.
If the UiPath robot is installed in service mode , a service with the name "UiPath Robot " should be visible in services.msc .
Kindly install the UiPath Robot in Service mode
Step 2:
Also, please note that for the Unattended Robot, we recommend properly log off/sign-out from the Robot machine and not disconnecting before triggering the job.
Kindly ensure to Logoff/Sign off from the Robot machine, rather than disconnecting and trigger the Job from Orchestrator and check the behavior.
Step 3:
Please enable ‘Login to Console’ and set it to “No” and please provide the Height: 1920 , Width: 1080, and Depth is usually 32 in most cases. (Refer Settings Screenshot to set your resolution)
Please follow below steps:
Login to Orchestrator and go to “Robots” page.
Find out the robot for which you want to set resolution(facing issue) and edit this robot.
Go to “Settings” tab
Turn on “Login To Console” setting and choose “No”.
Set value for “Resolution Width”, “Resolution Height” and “Resolution Depth”. and Click update.
Point1:
Please follow the below steps to get the height, width, and depth.
In the development server: (Machine where the project was developed using Studio)
Use the "Take Screenshot " activity. Using this activity, do not select anything on the screen, select the entire desktop.
Use the "Save Image " activity to save the image at the desired location.
Check the details tab in the properties of the image saved. Note the depth, height, and width.
Point2:
Please enable ‘Login to Console’ and set it to “No” and provide the Height, Width from step1. Depth is usually 32 in most cases.
Change the runtime settings for Robot (kindly check the below screenshot).
[image]
Note: For the changes to resolution settings to take effect , a new session must be created, so you must log off and then log back in. (do not disconnect)
Step4:
For type into/ click uiautomation activities, try to enable simulate/ send window messages property.