RPA or SAP Process Automation: Which Automation Really Pays Off for SAP
SAP itself names RPA bots in Digital Access. What that means for RPA on SAP and Business One, and when SAP's own stack is the shorter path.
Automating SAP over Citrix: why UiPath selectors fail in virtual sessions and which approaches actually stay stable in practice.

Automating SAP over Citrix fails in UiPath projects almost always at the same point: the selectors. In a Citrix session, the robot doesn't see a real SAP window, only a streamed image of the remote desktop. The UI controls and their attributes, which a selector accesses, reside on the server rather than on the local machine. That is exactly why the classic selector approach falls flat as soon as SAP runs over Citrix, VMware, or Remote Desktop. This article shows why that is the case and which approaches remain stable in practice.
UiPath selectors don't work over Citrix because a virtual session only transmits pixels, not a user interface. The local robot receives a video image of the remote SAP GUI, but no access to the underlying windows, fields, and IDs. UiPath's own documentation states that virtual desktops make it practically impossible for the robot to reliably recognize the required selectors. What would be a clean, unique selector in a local SAP installation simply doesn't exist over Citrix.
That this problem isn't an isolated case is shown by the UiPath Community Forum. Threads like “Citrix SAP automation,” “Not able to generate SAP selectors,” and “Citrix, Remote-Desktop Problems with Selectors” keep coming up there year after year. The question is rarely whether selectors break, but what to replace them with.
Image and OCR recognition is the usual emergency exit, but as the sole basis it is fragile. Many teams turn to “Click Image” and OCR screen scraping because it seems like the only visible path. The pattern in the forum repeats itself: an image that is recognized today triggers a “selector not found” exception the next day, and the OCR reader reads the same text correctly one time and incorrectly the next. The cause lies not with the robot but with the session itself.
More reliable than individual image comparisons is UiPath Computer Vision, which was built specifically for virtual environments. Instead of searching for a selector, Computer Vision sends the session image to a neural network. It recognizes on-screen text via its own OCR, classifies elements such as fields, buttons, and tables, and locates them uniquely through a multi-anchor system. So an element is not found via a single stored image, but via its relationship to neighboring labels and fields.
This anchor principle is the difference from “Click Image.” If the layout shifts slightly or the resolution changes, the anchor holds the reference where a rigid image comparison would break. For SAP over Citrix, Computer Vision is therefore generally the more robust standard than pure OCR scraping.
Automation becomes most stable when it bypasses the Citrix image entirely and addresses SAP directly. SAP provides an official interface for this: SAP GUI Scripting. When active, the robot controls the SAP GUI through its scripting objects instead of pixels, independent of resolution and rendering quality. It is activated server-side via transaction RZ11 with the parameter sapgui/user_scripting set to TRUE; scripting must also be enabled in the SAP GUI client.
The decisive architectural step is often a different one: bring the robot to where SAP actually runs. Instead of automating across the Citrix session from the local machine, the UiPath robot runs inside the server or Citrix session where the SAP GUI is natively installed. This removes the Citrix boundary, real selectors and SAP GUI Scripting work again, and fragile image recognition becomes unnecessary. Whether this is possible depends on the IT landscape. Where it is possible, it is the most reliable path.
NordFlux decides the method based on the landscape, not the tool. Before the first robot, we clarify three things: Does SAP run only as an application published over Citrix, or is there a server the robot can run alongside? Can SAP GUI Scripting be enabled? And if not, which elements can be reliably anchored via Computer Vision? Only after that is it decided whether the process runs via SAP GUI Scripting, via Computer Vision, or via a combination.
In practice this usually means: SAP GUI Scripting where IT allows it, Computer Vision for the parts that must go through the Citrix image, and deliberately no pure “Click Image” bot that breaks anew every week. This upfront assessment costs a day and saves the maintenance loop that image-based Citrix automation otherwise creates permanently.
UiPath selectors fail over Citrix because the session only delivers an image. SAP automation only becomes reliable once you address SAP directly (SAP GUI Scripting) or anchor elements via Computer Vision instead of relying on individual screenshots.
Read more about the fundamental decision between classic RPA and SAP's own automation in our article RPA, SAP, or SAP Process Automation. If you want to hand off a process not just by clicking through it, but as a supervised workflow, take a look at our AI Agents.
Because a Citrix session only transmits an image of the remote desktop. The UI controls and their attributes reside on the server and are unreachable for the local robot. The selector therefore finds no target elements and the automation fails.
For simple outputs, OCR can suffice, but as the sole basis it is fragile. Resolution, DPI scaling, and color depth of the session alter the image, so the same recognition works sometimes and not other times. Computer Vision with an anchor system, or SAP GUI Scripting directly, are more stable.
SAP GUI Scripting is SAP's official automation interface. The robot controls the SAP GUI via scripting objects instead of pixels and is therefore independent of the image quality of the Citrix session. It is activated server-side via the RZ11 parameter sapgui/user_scripting and additionally in the SAP GUI client.
Yes, if the robot runs inside the server or Citrix session where SAP is natively installed. Then the Citrix boundary disappears, real selectors and SAP GUI Scripting work again, and image recognition becomes unnecessary.
NordFlux builds digital employees for organisations: automations and AI agents that take over repetitive work. You stay in control.
SAP itself names RPA bots in Digital Access. What that means for RPA on SAP and Business One, and when SAP's own stack is the shorter path.
Screen scraping is quickly dismissed as a step backward. It is only justified when a system has no interface. When that is the case, and when it is not.
Studio, Robots, Orchestrator, Platform Units: what mid-sized businesses really need from UiPath, what it costs and when a different tool is cheaper.
When SAP runs over Citrix, classic UiPath selectors break regularly, and image or OCR recognition does not provide a stable base either. NordFlux relies on Computer Vision or direct SAP GUI control, depending on what actually holds up for your process.