Click 'Create Transaction': Cannot bring the target application in foreground because the Windows session is locked

When ever the bot runs in un attended mode I get the below error : If it runs in atttended mode the Click activity works. How can we resolve this issue?

Click ‘Create Transaction’: Cannot bring the target application in foreground because the Windows session is locked.

@marina.dutta

  1. Make sure the robot is installed in service mode…can check from task manager → services → uipathservicehost.exe is there or not…if no install in service mode
  2. Make sure signout the user before the run

Cheers