I encountered an issue during the desktop unattend flow and have developed a solution to address it. This post outlines the error and details the steps taken to resolve it.
I recommend you to take a look at this book about RPA.
Error Description
- Error Code: SessionExistsForTheUserWhenUnattended
- Error Message: There is a user session on the target machine.
- Occurrence: it happens when your flow runs in unattended mode and there is a session in your remote machine.
Solution Implementation
To address this error, I followed these steps:
Step 1: Go to your machine, click on it, then browse your machine.
Step 2: Click on Windows Key then your profile then sign out
Step 3: Make sure that your machine is disconnected
Verification
To ensure the error is resolved, wait for one minute then test your flow.
Conclusion
The solution has been tested and verified to effectively resolve the error in the desktop unattend flow.



