Error thrown while canceling Find Element Operation

Exception occurred, exception message: The activity 'Find Element with ID 50 threw or propagated an exception while being canceled.
Exception occurred , exception source: UiPath.Core.Activities
Exception occurred , exception trace: at UiPath.Core.Activities.InvokeWorkflowFile.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)

worflow as attached

It doesnt occur every run, but frequently

1 Like

I am having this same issue - was a solution found?

I think somewhere in Ui activities there are some non thread safe operations so I’d advise using retry scoping your parallel activity or do not make your checks parallel instead, continue sequential check where applicable.

I am having this same issue too. My parallel has a Load Python, and i cant cancel the activity. The error stop the program, same when i surrond with a try cath.