12-09-23 12:12 PM
Hi,
We are trying to execute the bot in multiple VMs via the Login agent, every 1 to 2 hours, the bot gets terminated and gets the below-mentioned error.
ERROR: Internal: Failed to perform step 1 in Navigate Stage 'Activate Application' on page 'Login Application' - Could not identify process owning the current foreground window
Can anyone please help us to resolve this issue?
Regards,
Lingaraj Shivakumar.
12-09-23 01:32 PM
Hi Lingaraj,
Are you passing a Window Title into the Attach page? How are you closing down the application? It could be that there are other background browser processes that are running when you close down the initial browser. I would suggest turning these settings off if you haven't done so already. This is for Edge, but these settings also apply to Chrome.
Thanks!
12-09-23 02:13 PM
Hi @Lingaraj S K - I am not sure if there's too many manual login being made into the VMs.
These foreground error starts showing up if there are manual logins i.e. it should always be login agent which should login and process things-
Avoid manual logins into the Prod VM and if someone is logging in, always ensure you log off when you leave the VM and drag drop login agent process from a controller VM or let the login agent login back into the Prod VM and process stuffs at the scheduled time.
12-09-23 02:34 PM
HI Lingaraj Shivakumar,
I also suggest when ever there is manual login restart the VM before running in unattended mode, also try to implement Activate application and maximize application in attach action in the object level.
By implementing Activate application and maximize application when ever there is interaction in the application we are making sure bot interacting with the current application.
12-09-23 02:36 PM
HI LIngaraj,
Below could be one of the reason,
Once the machines has been logged in, please make sure any pop up which is coming in the foreground. Because sometimes pop up also may cause this issue.
As part of my VM server once BOT logged in some system related pop up came and while activating application it was coming up in the foreground. Because of this issue process was failed with same foreground error in my case.
Hence we added logic to close the pop up and then we continued further flow it was working fine as expected.
13-09-23 10:32 AM
For an occasional activation problem, basic recover/resume/pause/retry logic might be suitable. Granted, this is a sticking plaster but it can suffice to cope with an infrequent exception.
13-09-23 12:16 PM
Hi lingaraj sj,
I noticed there is VBO called "utility - foreground locker"
Check below VBO from digital exchange.
Never tried using this VBO but its worth to try it, hope this VBO helps to fix the exceptions related to foreground.