Cannot bring the target application in the foreground

Hi every one i am working on a solution in which when i am running my process in attended mode (by running run file) is it fine, but the moment i use the same process from Orchestrator it is throwing me the exception “Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘’ from the process ‘openwith.exe.’ System.Activities”
need a quick and correct help

Thanks in advance

@Nipendra_Dhiman,

Try this solution.

Hi @Nipendra_Dhiman,

Is your robot installed in service mode or user mode?

It has to be in service mode for unattended run.

Regards
Sonali

i will try that i think it can help

1 Like

this is little tricky @sonaliaggarwal47 , any idea if i can check which mode it is on

@Nipendra_Dhiman

As per error it looks like the issue is because of a pop up or nitification message only so you can try to supress them …

To check if robot is installed in service mode go to task manager and under services check for UiPath service host .exe if this is there then it is in service mode…

But moatly the issue is related to notifications itself

Cheers

Hi @Nipendra_Dhiman,

To check if a UiPath robot is installed in User Mode or Service Mode,
1)Go to start menu and open the Windows Services console by searching for “services.msc”
2)and look for the “UiPath Robot” service;
3) if the service is present, the robot is installed in Service Mode,
4)if not, it’s in User Mode

Alternatively, you can also refer steps mentioned in the below post for same:

If you find that robot is installed in service mode, then check for settings mentioned in below post, there may be the case that some settings are not as it should be:

Regards
Sonali