Error fix for RDP session showing pop-up with message "Session has been idle over its time limit. It will be disconnected in 2 minutes." that stops the Unattended automation.
Error Pop-up message:
with a log in event viewer as:
This message pops-up when Robot performs back-ground operations, and it looks like an idle session to the OS.
Note that this pop-up comes up because of session settings on the machine and not related to UiPath. It is recommended to get in touch with local IT team to configure.
Below are the two settings noticed which are responsible for having an idle time:
- MaxIdleTime key set-in registry:
Go to registry "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services\" and look for MaxIdleTime. Set it as per the requirements or also set the value to "0", which equates to "Never".
- Keep-alive connection interval in Local Group Policy
- Open Local Group Policy Editor
- Under Local Computer Policy navigate to Administrative Templates> Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections and change the settings under Configure keep-alive connection interval
- For an even finer adjustment, look under Session Time Limits and change the settings under Set time limit for disconnected sessions
- In the right panel, double-click the policySet time limit for active but idle Remote Desktop Services sessions. In the modal window that will appear, activate it by switching the radio button from to Not configured Enabled, then set the desired amount of time in the drop-down list right below.