I have a remote server. The UIPAth assistant is located here. Robots that will not be used for my remote server this will be used
“Cannot bring the target application in foreground because the Windows session is locked.”
Assistant has nothing to do with unattended automations.
Manually log into the server via RDP, using the same account(s) as the robot, and then SIGN OUT completely from the start menu. Do not just close the RDP window. This leaves the session active but in a state similar to being locked, and interferes with jobs.
In general, it is best practice that humans do not log into your automation server(s). If they do for some reason (testing, troubleshooting, etc) they must LOG OUT completely, not just close the RDP window.