Getting System.AggregateException

Hi, I am using a type into activity where my selectors are working fine…
My business scinario is made in such a way where I need to place the typeinto activity inside a loop. My selectors are valid for all cases but Don’t know why I am getting System.AggregateException error.

Source: Typing into the search box

Message: One or more errors occurred.

Exception Type: System.AggregateException

RemoteException wrapping System.AggregateException: One or more errors occurred. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Uninitialized UI node.

at UiPath.UiBrowserClass.get_node()

at UiPath.Core.Browser.get_Element()

at UiPath.Core.Activities.Target.<>c__DisplayClass49_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)

This is the whole exception…Please help.
Thanks in Advance…

1 Like

Hey @mukesh_behera,

There are few reasons why this exception occur.

UI Element present but may be inaccesible by bot due to some reasons.
Package versions, Web Extension

So for better investigation it will be helpful if you post a snap of your type into activity with properties and selector.

If you are automation is on a public website, then kindly post url as well.

Will be helpful, Awaiting your response

Thanks :slight_smile:

1 Like

1 Like

Please Take a look. Thank you for your response.

1 Like

Is it possible to show the selector also please and also the web URL(ifpossible)

Thanks

I am typing into the search bar at https://www.nseindia.com/
First time that is working but second time that is showing exception. I

1 Like

Just Waiting for your response. Thank you in advance.

1 Like

@mukesh_behera, It is working fine for me in a loop.

Can yu share xaml file please.

Thanks :slight_smile:

1 Like

Main.xaml (14.0 KB)

Please Take a look

1 Like

Could you please share the excel please !

Just to able to debug the workflow.

Thanks in advance :slight_smile:

1 Like

Book1.xlsx (7.3 KB)

1 Like

Waiting for your Responce. :slightly_frowning_face:

1 Like

On it, No worries.

In sometime, you will be happy :slight_smile:

1 Like

These words gave me confidence. I just want to know the cause actually. The exception does not contain proper information so little bit worry as I am new to UiPath. Thank you very much in advance.

1 Like

@mukesh_behera, Thanks for your patience.

Btw, Patience Pays :slight_smile:

PFA modified workflow given separately - NSE.zip (11.5 KB)

The actual issue is due to the new window getting opened during the process.

So the selectors inside the open browser getting messed up due to the close tab which was closing the first tab making the open browser session invalid resulted in an exception called one or more errors occurred.

Hope this helps.

Thanks once again :+1:

1 Like

Thank you so much for the solution. I got the thing. I never thought about the close tab activity. :grinning:.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.