cancel
Showing results for 
Search instead for 
Did you mean: 

Error during a session using scheduler.

Anonymous
Not applicable
Hello Blueprism users. Currently at my work place I'm using BP. I tried to run a process using scheduler, then I realized that some error occors when it tries to log in on the website on IE. Error messages are witten in below. ERROR: Internal : Failed to perform step 1 in Navigate Stage 'Activate' on page 'XXsystem' - Exception during remote setforegroundwindow - System.ComponentModel.Win32Exception (0x80004005): Access refused. 場所 System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) 場所 System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) 場所 System.Diagnostics.Process.OpenProcessHandle(Int32 access) 場所 System.Diagnostics.Process.get_Handle() 場所 BluePrism.ApplicationManager.clsLocalTargetApp.ForceForeground(IntPtr hwnd) Does anyone know why this error happens and how I can fix it ? The error never happens when I run the process in control room, and sometimes the process runs smoothly even using scheuler.
2 REPLIES 2

John__Carter
Staff
Staff
Hi Yuka - I'm not sure as to the cause of the problem, but you might be able to improve the situation by putting a block around the Activate step, with a Recover and Resume to neutralise the exception. After the Resume, use a Wait to pause for 0.5 seconds, then another Navigate to try Activate a second time. I've found this technique to be useful for intermittent Activate errors. Also, whenever you have a problem that seems to occur randomly like this, always think about the synchronisation between your object and the target application. Ask yourself whether there is any chance that your object could be running out of step with the application, and maybe trying to do things too soon, or too late.

Anonymous
Not applicable
Hi John, Thank you so much for your advice, It works perfectly when the process doesn't work stablely. I also figured out what to do to the error. 1. Maximize the window before activating it. 2. Minimize the window of scheduler (BluePrism server) Thank you again, I hope you have a great weekend !