We have an application that launches via the Citrix ICA client. I wanted to try using Computer Vision to interact with it. But when UiPath is trying to launch the app the ICA client throws errors. Even if I launch it manually while the job is running, the client throws errors. As soon as I stop the job, the errors go away and the client works normally.
Can you please share the error message? And what kind of policies are activated by Citrix?
I don’t know anything about Citrix policies, it’s not an internal app.
Happens when the automation is running and trying to attach (Open Application/Browser) to the window. When the automation is not running, it doesn’t happen.
How do you usually launch the app, can you please send the shortcut-details (probably on your desktop?) and the command parameter you used in UiPath? It seems that you just started the ICA client without any parameter, so no server/application is identified? You must select/attach an .ica as the information window noted. Is should look like “wfcrun.exe myIcaFile.ica”
We log into a web portal and click an icon. It works when I do it manually, gives the error when the job is running (whether I click it or the robot clicks it). I am fully aware of how to use this, I’ve been automating in it for years. I was recently testing switching to Computer Vision for automating in this app, and started having this problem immediately.
Thanks for clarification, so perhaps these are policies. In my company we prohibit to take screenshots of ICA sessions, so probably CV uses similar technologies and Citrix won’t accept to use some specifics of CV? (tbh, I’ve never tried CV on our Citrix env.)
I’m able to take screenshots and do image based targeting, and CV works during the indicate step. Also, CV works if I just run it after the Citrix window appears. But it seems that if CV is trying to find the window as the window is opening, it causes a problem.
One additional idea: when you see the error, what command line was used? You can select the command line in taskmanager (details, select columns, command line)
No command line is used.
Setting the Open option to Never
in Use Application/Browser activities solved this issue in my case. The default value is IfNotOpen
so that’s why this pop-up appeared while my window was opening.