Process works in attended mode but not in unattended

Hi guys,

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?

Can you suggest to me any solution for this?

Thank you.

Hi @minolp,

Can you please see below post solved by me.

I think your setup is incorrect Please install your bot in service mode.

Hey mate,

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.

Can you please share the Error message? So that we will get the idea.

HI @minolp

Can you share the screenshot of this?

GOto → task manager-> Details-> Search for uipath and you can see multiple Uipath.ServiceHost like that share that one

Regards
Sudharsan

try to create seperate folder for new process and in manage tenant add unattended for your process

Hi @minolp,

Delete that process or Re-create the new process and Trigger it again. Because of process Id may be corrupted.

This may help you.

Thank You.

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 .

image

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.

undefined

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:

  1. Login to Orchestrator and go to “Robots” page.
  2. Find out the robot for which you want to set resolution(facing issue) and edit this robot.
  3. Go to “Settings” tab
  4. Turn on “Login To Console” setting and choose “No”.
  5. 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.

  1. 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.
  2. 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.

For a detailed explanation please go through our KB article: https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/Automation-works-in-attended-mode-but-not-in-unattended-mode.