Error on Attach Browser

Still working on Update Client Hash. Had things working and now they aren’t.

Created the login.xaml as suggested and it was working, now I get an error. Tried to create new Attach Browser and it’s the same error.

RemoteException wrapping System.ArgumentException: Value does not fall within the expected range.
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

How do I trouble shoot this? Login.xaml (14.1 KB)

Thanks!

1 Like

yes me too got an error

1 Like

None of my other items that were previously working, work now. NOTHING is connecting to Chrome.

Did something change?

Hi @jgoranso,

I honestly never use other browser that is not Internet Explorer, I don’t consider the other browsers reliable. I suggest making your robots in Internet Explorer even though we can automate easily in other browsers also by doing this you won’t need to install any extensions.

i can only thing of Chrome extension which might not be working…

Can you please verify that once…

Ahtesham

Chrome extension is installed and seems fine.

I hear you about IE v Chrome but I already completed the exercise in Chrome. Suddenly, parts of it aren’t working after them working just fine a week or two ago.

Basically, I would have to start over if the answer is to use IE. At this moment, I’m not willing to do that.

the answer is not to change everything, you can use any of the supported web browsers, i never seen that error, so sometimes a simple studio or pc restart fix weird errors…

Hello @jgoranso,

Any reason where there are two Attach Browser activities? The selector is validating on my end for the first attach Browser . You can perform all the activities in the Do container (highlighted Yellow) of the first activity. I don’t know for sure if that is causing issues because the Do container of the first Attach Window is empty . Is the Robot expecting something in that empty Yellow area?

From what I see, the selectors for both the Attach Browser containers seem to be pointing to the same window.

1 Like

You have to remove and add the Chrome extension completely
Enable Extension permissions
Restart Chrome
Restart UiPath

Your selectors are pointing to the Chrome Window object and they will keep failing as Chrome keeps auto-updating in the background and changing its window definitions. This will cause the Chrome extension to not work reliably.

<wnd app='chrome.exe' omit:cls='Chrome_WidgetWin_1' title='ACME System 1 - Account - Log In - Google Chrome' />
<wnd omit:cls='Intermediate D3D Window' />

The Chrome extension expects you to click on the “Tab” of the window. For IE, you will need to click on the Browser window area. This is the key difference between using these two Browsers.

image

Here’s how your Chrome selector will look if you did that:

<html app='chrome.exe' title='ACME System 1 - Account - Log In' />

And when I Debugged your XAML, I can see it going into the Do container of the First Attach Browser.

image

But when I step into your second Attach Browser, it fails for the reason stated above.

I hope this helps.

1 Like

Thanks for the replies!

I have rebooted my PC to try this again.

I had two Attach steps to test the selector. I was seeing if anything would work. Neither of them worked for me.

I tried again this morning and I get the same error from before.

Here is the error:

RemoteException wrapping System.ArgumentException: Value does not fall within the expected range.
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Here is my (updated) file. Login.xaml (12.8 KB)

New Thought: Is it possible that the update again removed a dependency and it’s not being added back?

Thanks!

The error seems to be originating from System.Activities.
Are any of the standard dependencies missing or out dated?

I will close this out. This was a lot of bad things happening all at once.

My extension in Chrome got uninstalled. I don’t know how that happened. It took someone with elevated privileges to restore it.

UIPath updated itself, switched out of beta mode, and didn’t restore or use the libraries the new version wanted. This is the third time that it has updated but the update wanted new libraries and it didn’t update them as well.

I appreciate all of the help but in the end, UIPath, to me, didn’t give me good information. Instead of saying it couldn’t connect/communicate or see Chrome, I get this weird error. It took a long time for me to check that extension, since it wasn’t mentioned and had been working. Instead of updating itself to the new libraries it wanted, or giving an error about that, it kept running but giving, again, bad error information to me.

As you can tell, I’m not happy with UIPath at the moment but wanted to update this issue in case any others are seeing it.

Thanks again for the help!

Aaaaand this is happening. Again. UIPath extension is there but Community version switched out of Preview (beta) mode. I’m hoping a reset fixes this again.

Okay, this issue has come again.

The extension is running as per the above screen shot.

I try and connect to this page and I get this error.

image

As I said, though, I have the UIPath chrome extension running.


My Chrome version.

And when I go to Tools => UIPath Extensions and click on Chrome:
image

I have restarted the browser and Community version UIPath.

I have even gone in and changed the selector’s manually to no avail.

image

Please advise.

Thanks!

@jgoranso, the UiPath Chrome extension has two components, thus it must be installed from Studio and not from Chrome Web Store: one components gets installed in the browser and other one gets installed in the development system (NativeHostMessaging process).
Detailed documentation here: Chrome Extension Troubleshooting.
Thus I recommend installing the Chrome extension via Studio->Home->Tools->Chrome and verify if NativeHostMessaging process is running in your system:

2 Likes

Trying to eliminate the easy causes. Has the title attribute changed on the page you’re trying to attach to?
Does it really start with Login* ?

1 Like

Hi @ jgoranso,

The below steps worked for me when I got the wnd instead of html.

  1. Open the chrome browser, click the three dots on the right top (options)–>More tools–>Extensions
  2. Choose the “Remove” option for the “UiPath web automation”
  3. Go to Studio—>Home—>Tools—>install the extension for chrome (this is prompt you to “End” all the chrome processes and click ok. But do not click on the ok yet)
  4. Go to task manager, select all the chrome processes and click “End Task”
  5. Go back to the studio and click on the “Ok” button now
  6. open a new chrome browser and type “chrome://restart” to restart the browser

Now in studio, if you attach a browser, we would get html instead of wnd. Hope this helps.

1 Like

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