cancel
Showing results for 
Search instead for 
Did you mean: 

Bot run at scheduled time but Failed to perform step 1 in Navigate Stage 'Attach' on page 'Attach

Lily.L
Level 5

Hi Guys,

So my bot is running at the scheduled time. I believe the process is complete because it sends out the reports and notifications. The process attaches to the MSEDGE Window and runs on Exclusive Mode. 

However, when I check to the Log in to the control room, it has errors. I have check Window Title = "*ABC*" , Process name = *msedge* and child index = 0

Can someone please explain about this error? Why does it happen and how to fix that? Many thanks!

19023.png



------------------------------
Mia Mikela
------------------------------
3 REPLIES 3

Hello,
 
Do you have any action at startup to close current browser sessions? When the error occurs, does the edge open? If so, try including an action to wait a few moments before applying Attach.
 
It happened to me once that, due to scheduling, the execution occurred very quickly and there was no time for the edge to initialize correctly.
 
Regards


------------------------------
Leonardo Soares
RPA Developer Tech Leader
América/Brazil
------------------------------
Leonardo Soares RPA Developer América/Brazil

Thanks Leonardo,

Before kicking off the object, I've thrown in a "Kill Process" action to make sure everything starts fresh.

Oh, and since we've got that "Attach Page" thing going on all over the place within the object, I thought it'd be ok to add a "Wait" stage right before we jump into the "Attach" action. 

If you've got any other ideas or suspects for what might be causing those errors, I'm all ears! Thanks for your help!



------------------------------
Mia Mikela
------------------------------

HI Mia Mikela,


I would suggest to add the screenshot and observe the behavior of the website and see whether you are able to replicate this issue.
Because if for some reason the website you are trying to open may not be fully loaded. So If that is the case  Increase the  condition wait time after launching the browser based on the  website response time
Other spots I would check
1) Conditional wait  is present after launching the browser
2) Whether   window title using in Attach window is the correct window BOT is trying to attach?

Check below knowledge base article and see whether it is helpful  to resolve the issue.

https://support.blueprism.com/en/support/solutions/articles/7000076881-how-can-i-attach-the-target-application-by-process-id-if-the-attach-action-fails-by-windows-title

https://support.blueprism.com/en/support/solutions/articles/7000084323-how-can-i-fix-browser-automation-attach-issues-in-6-10-5-and-6-10-6-
https://support.blueprism.com/en/support/solutions/articles/7000077352-why-can-t-i-attach-to-my-modern-browser-using-the-window-title-



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri