cancel
Showing results for 
Search instead for 
Did you mean: 

Unattended Execution: Element Not Found and Could not identify process owning the current foreground window

esaugos
Level 6

Hello,

I am getting random errors as shown below while executing the process in Unattended scenario.

  1. Element Not Found.
  2. Could not identify process owning the current foreground window.

When the process runs in attended mode, it works fine but the issue is only with unattended mode.

I have already gone through other posts in this topic and also followed steps over there as mentioned but no luck so far.

Also would like to highlight that the VM is in Azure Platform and we are using RDP session to login the VMs for process execution. There are no security policies in the VM which can lock the screen so its permanently unlocked. Already verified through RTR latest screen capture option whenever an exception occurs and there is no issue with screen resolution as well because its same in both attended and unattended scenarios.

Blue Prism version is 6.10.5. Kindly help resolving this issue. Screenshots below.

35907.png

35908.png

RPA Solution Architect
1 BEST ANSWER

Best Answers

esaugos
Level 6

Hi @Luis Lopez,

The issue has been resolved currently by following the below URL and executing the VM commands as mentioned here. Although Regression testing is ongoing to conclude the unattended Automation Execution in Azure VMs.

Disconnecting From Remote Desktop While Running Automated Tests | TestComplete Documentation (smartbear.com)

RPA Solution Architect

View answer in original post

4 REPLIES 4

expertcr
Staff
Staff

It is hard to help you without knowing what is happening on the screen. You can check the following article "BPE error "Could not identify process owning the current foreground window" when trying to focus an application" here regarding that error.

You can enable an exception to Save a Screen Capture of the moment when it fails. So you can see what is blocking the screen or why the element is not visible.

35905.png

esaugos
Level 6

Hi @Luis Lopez,

I have already checked the exception screenshot using the screen capture. The screen is not locked and GUI is also in foreground but still random exceptions like element not found and sometimes foreground errors are coming.

RPA Solution Architect

expertcr
Staff
Staff

Can you check add before looking for the element that you use, Activate Application, just to be sure the window ready.

35906.png

esaugos
Level 6

Hi @Luis Lopez,

The issue has been resolved currently by following the below URL and executing the VM commands as mentioned here. Although Regression testing is ongoing to conclude the unattended Automation Execution in Azure VMs.

Disconnecting From Remote Desktop While Running Automated Tests | TestComplete Documentation (smartbear.com)

RPA Solution Architect