I have tried everything I have found online to fix this issue, including installing UiPath in service mode, turning Login To Console on, signing out before the automation, etc. but I still get this error.
I’m losing it, plese help.
Hi,
To isolate cause, can you share result of job recording feature (video or screenshot)?
If there is desktop image, the cause may not be screen lock.
Regards,
Ideally login to console should be set to off if no hardware events are used it should work
Also sometimes the issue can be because of another application or notification blocking the foreground as well
Can you please provide more details around the process and failure
Cheers
‘Cannot bring the target application in foreground because the windows session is locked’
Issue: I have faced this issue. In my case, when the process had been running for more than 180 minutes (3 hrs), the windows gets automatically locked and the above said exception would be returned as a System Exception back to me.
Conclusion: After consulting IT Team, We realized that every server has its idle time set, after the time limit crossed the windows session will automatically be locked. Hence, the bot cannot perform any UI automation on the machine.
Fix: Try contacting the IT Team and tell them about this issue and remove the time limit.
Hope this helps
Thanks and regards,
Rakshan C K
