RemoteException wrapping UiPath.Core.ElementOperationException:

I am working on automating the desktop using UIPath.
Inside Citrix machine. and I created Fast API to trigger the robot processor.
It working perfectly when the Citrix machine connected. but when the Citrix machine disconnect it through above error
I tried to use ” Element Exists ” and increase “Timeout” time it doesn’t help

The error “Timeout reached” occurs when the robot is waiting for some elements to appear on the screen and the element is not available on the screen even after the 30sec(default).

Hi @chethan4046 ,

Not sure, how it will be helpful, based on info you have shared

  1. Check the citrix machine activied irrestive of your connected or not. If not there is your answer.
  2. In case the system is an active state or not , able to generate the session, check Robot is active or not.

Let us know.


  1. citrix machine active
  2. Robot is active . application is launching but the next activity is through above error

hi @chethan4046 ,

Can you test like this,

  1. Launch the application as you have coded
  2. Set a message box to give pause to the bot.
  3. Login
  4. Check the element is exist on the screen as expected or not.

Hello @Sukesh_V
I Tested as per your suggestion

  • element exists on the screen as expected but it gives an error on disconnect mode

Full error

kareo: RemoteException wrapping UiPath.Core.ElementOperationException: Timeout reached. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Timeout reached. **
** at UiPath.UiNodeClass.BringIntoView()

** at UiPath.Core.UiElement.BringToForeground()**
** — End of inner exception stack trace —**
** at UiPath.Core.Activities.ObsoleteTaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)**
** at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)**
** at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)2021-02-10 13:11:11.831 | ERROR | app.routes.kareo:get_ar_report:38 - {‘action’: ‘Error while download AR report’, ‘error’: FileNotFoundError(2, ‘No such file or directory’)}**