System.Runtime.InteropServices.COMException (0x80070520) A specified logon session does not exist 0x80070520 - Troubleshoot Steps

Hi Diego.
For a single robot running on the machine (meaning the Operating System of the robot machine is Windows Desktop - i.e. Windows 7, windows 8, windows 10) you don’t need Login To Console to be set to false. It’s even advised to set it to true.
What is the most important: you should sign out all the users from that machine. No active session should exist. If you do this, you increase the chances for the “UiPath Robot” Windows Service to be able to create a console session.
By the way, I assume you don’t use the community edition of UiPath Studio/Robot, where there is no windows service “UiPath Robot”. Only the service can create the session if started from Orchestrator.
Please find attached screenshots from a PPT guide that explains what to check.
There is no need to add “Everyone” for the right “Access this computer from the network” as long as the group “Users” is still there. All users are members of the group Users.
There is no need for “Logon as a batch job”.


2)

3)

4) The next picture was obtained by running UiRobot.exe --EnableLowLevel, followed by opening the .etl file in SawBuck.
You can see that the Service could not create the session for the user srvsysrobott01 because another user cph075009 was logged in and the robot machine is a Windows Desktop OS, does not support two sessions at the same time.

4 Likes