Can not bring the target application in foreground because the Windows session is locked

Hello together

I had this error message “Cannot bring the target application in foreground because the Windows session is locked” once before, but I don’t know what to do anymore. I have already tried several things, but nothing has worked. What exactly do I need to look out for here?

Many thanks in advance

Hi @moritz.seiler

Check the below thread.

Regards

1 Like

@moritz.seiler

Is it failing in unattended

  1. Check if there are any window notification pop ups are coming if so disable
  2. Is the robot installed in service mode?
  3. If yes for 2 then make sure to logiut before running the robot(not log off only signout/logout)
  4. Use activate as the first activity in your scope

Cheers

1 Like

Hi @moritz.seiler

Please check if your robot is installed in service mode . Check if the UiPathRobot.svc is running , or stop it once and restart .
For the robot account Login to Console must be enabled .

Hi @Kanak_Lata_Singh

Many thanks for your answer!
I deleted the studio and reinstalled it with in unattended Robot mode instead of Automation Developer. And since then i don’t get the error message.

Thanks all!

2 Likes

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