Hi guys,
I am Facing the error as One or more error occurred and exception as Aggregate exception
while processing click activity.
I don’t know why these error happened.
if any one having knowledge about that error. plz share here why its occurred and how to resolve that.
I am also having same issue, have click activity inside a for-each , it works for 2 to 3 iteration but after that get below exception
process has thrown an exception
Source: Click ‘BUTTON’
Message: One or more errors occurred.
Exception Type: AggregateException
System.AggregateException: One or more errors occurred. —> System.ArgumentException: Value does not fall within the expected range.
at UiPath.UiBrowserClass.get_node()
at UiPath.Core.Browser.get_Element()
at UiPath.Core.Activities.Target.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
—> (Inner Exception #0) System.ArgumentException: Value does not fall within the expected range.
at UiPath.UiBrowserClass.get_node()
at UiPath.Core.Browser.get_Element()
at UiPath.Core.Activities.Target.<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<—
This is really Browser dependent. Just as the behavior of the browser changes as a manual person clicks the same button repeatedly (due to cookies, trackers, etc) when the robot clicks the same button repeatedly the browser will behave differently.
A simple workaround I have found is to simply use the Refresh Page activity for that page to reload the browser, but there may be other solutions based on unique cases.
Hello,
I am having similar issue while using click activity. I can’t refresh browser since it’s a prompt I am trying to click on. Here is the error. I am trying to click on ‘Yes’
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.AggregateException: One or more errors occurred. ----> System.Runtime.InteropServices.COMException: Uninitialized UI node.
at UiPath.UiBrowserClass.get_node()
at UiPath.Core.Browser.get_Element()
at UiPath.Core.Activities.Target.<>c__DisplayClass35_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of inner ExceptionDetail stack trace —
at UiPath.Executor.WorkflowRunner.EndExecute(IAsyncResult result)
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)
Hi,
I resolved issue but for benefit of future readers. Here’s what the issue was:
My click activity was inside attach browser window and selector for attach browser window was in_argument which was null. When I passed correct value error resolved.