How to run bot when VDI is disconnected

Hello team,
I have to run bot on VDI server but its giving error like cannot bring the target application in the foreground, not able to write in excel file, not closing tabs this happened when i disconnect the VDI machine.

If the machine is on RDP the its working fine so how to handle this?

Thanks

@suraj_gaikwad,

Make sure your robot is installed in Service mode on the VDI. I don’t see any other issue which will result in this behavior.

Thanks,
Ashok :slight_smile:

1 Like

@suraj_gaikwad

  1. Donot disconnect instead signout/logoff (not shutdown)
  2. Check if the robot is installed in service mode

Cheers

@suraj_gaikwad
Please refer the below thread

You shouldn’t disconnect the VDI. You shouldn’t be logging in at all. Log into it as the robot user, then SIGN OUT completely from the start menu. Now run your automation unattended from Orchestrator.

I m running bot from run mode, i have to keep connected with vdi i cannot be lock the screen or disconnect the vdi machine even i cannot lock my screen also.

Please elaborate more so i can understand easily.

@pradeep931
@postwick
@ashokkarale
@Anil_G

Thank you team

@suraj_gaikwad

  1. Are you running bot from orchestrator? If yes then please open the machine where you are running and open task manager , then go to details/services and check if uipathservicehost is running or not…
  2. For running bot from orchetsrator you need to log off the user

Cheers

No, i m not running from orchestrator.
@Anil_G

Thanks

@suraj_gaikwad

Then are you running from UiPath asisstant?

Then you should not ideally close your vdi till the run completes as it uses the current user session to complete the task and if you disconnect the ui is not available so you would get an error

Cheers

If you want to run an automation without human interaction, that’s called unattended and you should be starting the job from Orchestrator.

Starting it attended (ie from Studio or Assistant) then closing the VDI/RDP connection will interrupt the automation. There is no way around it, you’re doing something you’re not supposed to do.

1 Like

Hi,
Now u have use attended licence but the issue is same

@ashokkarale @Anil_G @pradeep931 @postwick

Thank you

You should read the licence agreement.
Running attended means you it runs on the machine you are using.

Trying to make an attended robot run unattended, so you aren’t connected to the VM, isn’t allowed.

The behaviour you want is easily supported in a higher licencing tier.
Your licence should be used on a machine a human is using.

Please elaborate more so i can understand

@Jon_Smith

It is not legal to run the automation is the way you specify.
An attended licence must be used with a human at the screen, logged in and supervising the automation, as such using a VDI and disconnecting cannot and should not work and finding a way to try and force it to would be breaking your licence agreement.

If you want it to work as you describe, you require a different licence, an unattended licence.

1 Like

I Think you have to install UiPath in service mode and used unattended license for the same.

@suraj_gaikwad

As the name suggests attemded license is when you want to robot to run in supervision of a human and not by closing the vm

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.