We moved from V22 to V24 and facing exceptions in an unattended way. If we open the machine and run via orchestrator, the scripts work and no exceptions.
Following exceptions:
Exception: Invalid UI node.
Exception: The UiElement is no longer valid
Exception: The UI element is invalid. Make sure the target application is open and the element is on the screen.
We tried to add hard coded wait but no positive success. What are the issues?
how can we fix?
Could you please check if the updated version is installed in User Mode or Service Mode?
For Unattended Automation on VDIs, the Bot must be installed in Service Mode.
Hi @Pushkar.singh1 There exists a potential for resolution to trigger the exception. You may verify this as well. According to your post, the Automation is functioning correctly in unattended mode with version V22; therefore, I believe there should be no Resolution error.
To check if your Robot is installed in Service Mode or User Mode, please refer to the link below:
Please check in other machines to confirm whether the UiPath is installed in service mode/ user mode. Where UiPath Unattended automation is running smoothly.
As per my knowledge UiPath should be installed in Service Mode in VM to run Unattended automations.
Believe us, it is.
User mode does not work for unattended automations, it has to be in Service mode.
To be specific, in user mode the automation cannot log into the machine and render the display, the errors you see are caused by the display not being rendered so the screen effectively being off. Service mode is there to address that.
They are wrong if they stated it was always done in user mode.