Click activity fails in SAP live system – "Cannot get the screen rectangle of this UI node"

Hi all,

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
  • Only the Click activity fails also SimulateClick.
  • Documentation reference: UiPath Click Activity

Question:
Has anyone run into this issue before?

Appreciate any advice. Thanks in advance.

Hello @Crusha

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

Regards
Soren

Thanks for the info, I didn’t know that – but that can’t be the issue. I’m testing locally on my own computer using my own UiPath Studio.

Ah, I mistook “live system” as another computer resource, but you ment two different systems on the same machine, right?

If possible then try to indicate the descriptor in the live system for this particular button.
Alternatively perhaps CV Click is an option to use?

Hi @Crusha

Can you try enabling below properties for your click activity?

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.

Hope this helps.

Regards
Sonali

1 Like

@Crusha

  1. Is the element not visible? or is below the visible screen or so?
  2. did you try using a hover activity before click?
  3. for any desktop application sendwindowmessages work better than the simulate..

cheers