I’m using UiPath to automate data entry in SAP HCM via the classic SAP GUI. I have a working automation that runs without issues in the test system, but fails in the live system during a specific Click activity.
The error message is:
UiPath.Core.ElementOperationException: Cannot get the screen rectangle of this UI node. A possible reason might be that the element is not visible.
—> System.Runtime.InteropServices.COMException: Cannot get the screen rectangle of this UI node. A possible reason might be that the element is not visible.
What I’ve checked so far:
SAP GUI scripting is enabled in both test and live systems (sapgui/user_scripting = TRUE)
The affected fields and buttons have identical SAP IDs in both environments
UiExplorer recognizes and highlights the element correctly in the live system
The element is not disabled or renamed at runtime
Text input works fine in the live system – I can navigate through the fields using TAB and write into them
Perhaps the screen resolution is causing the problem.
Try defining a fixed resolution under Robot Settings for your designated robot user. Perhaps also try testing with Login to Console on/off.
If this still doesn’t seem to help, then perhaps record the running job, to visually see and troubleshoot problems.
This can be enabled under Process Settings → Additional Settings
If it still doesn’t work, then please try using modern click activity, with check app state activity to first check if element is visible, linked doc reference for both activities below. Last option, Please explore CV activities for same.