Click Generic Error Message

I have a process that has been working satisfactorily.

However, over the weekend, it has failed with the error ‘Click Generic Error’

The element is correctly identified in Studio, and is found with an Element Exists Activity using the same identifier as the Click activity
When running interactively in Studio the exception information reporting is as below

Exception Details
RemoteException wrapping UiPath.UIAutomationNext.Exceptions.UiAutomationException: Click generic error. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004021d
at UiPath.UiNodeClass.Click(Int32 dx,
Int32 dy,
UiClickType clickType,
UiMouseButton mouseBtn,
UiInputMethod inputMethod,
UiCursorMotionType cursorMotionType,
Int32 cursorMotionDurationMs,
UiKeyModifier keyModifier)
at UiPath.UIAutomationNext.Services.UiInputService.<>c__DisplayClass9_0.b__0()
at UiPath.UIAutomationNext.Services.DriverServiceCore.WrapCom[T](Func1 toExecute) --- End of inner exception stack trace --- at UiPath.UIAutomationNext.Extensions.ExceptionExtensions.GetFriendly(COMException comException) at UiPath.UIAutomationNext.Extensions.ExceptionExtensions.ThrowFriendly(COMException comException) at UiPath.UIAutomationNext.Services.DriverServiceCore.WrapCom[T](Func1 toExecute)
at UiPath.UIAutomationNext.Services.UiInputService.ClickAtPoint(IClickData data,
Point point)
at UiPath.UIAutomationNext.Services.UiInputService.<>c__DisplayClass8_0.b__0()
at UiPath.UIAutomationNext.Services.UiInputService.<>c__DisplayClass21_0.b__0()
at UiPath.UIAutomationNext.Services.DriverServiceCore.WrapCom[T](Func`1 toExecute)
at UiPath.UIAutomationNext.Services.UiInputService.Retry(Action action,
IUiNodeX node,
TimeoutToken token)
at UiPath.UIAutomationNext.Services.UiInputService.Click(IClickData data,
TimeoutToken token)
at UiPath.UIAutomationNext.Services.ActivityActionService.<>c__DisplayClass11_0.b__0()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread,
ExecutionContext executionContext,
ContextCallback callback,
Object state)
— End of stack trace from previous location —
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot,
Thread threadPoolThread)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Services.ActivityActionService.ClickAsync(IClickData data,
CancellationToken token)
at UiPath.UIAutomationNext.Activities.NClick.UiPath.UIAutomationNext.Activities.IVerifyExecutionActivity.ExecuteAsync(IRuntimeContext context,
IActivityData data,
CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.Services.VerifyExecutionService.ExecuteWithVerifyAsync[T](IVerifyExecutionActivity activity,
IVerifyExecutionRuntimeContext verifyContext,
IRuntimeContext context,
T data,
CancellationToken token)
at UiPath.UIAutomationNext.Activities.NClick.ExecuteAsync(IActivityContextWrapper context,
CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.TargetBase.ExecuteAsync(AsyncCodeActivityContext context,
CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.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)

ExceptionActivityInfo
“Id”: “1.533”,
“InstanceId”: “9”,
“Name”: “Click ‘Entities’”,
“TypeName”: “UiPath.UIAutomationNext.Activities.NClick”

Assistance greatly appreciated

Hi @gary.cobden

1.Please check whether any upgrade has happened to the uiautomation package. Please downgrade or upgrade to a stable version and check it once.

2.Select Send Window Message in place of Simulate Click in properties.

Check the below thread,It might helps you

Hope it helps!!

2 Likes