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?
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.
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…
For running bot from orchetsrator you need to log off the user
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
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.
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.