Action can only be performed when running in the main desktop

No response!

I deliberately cut-out my question!

I though, it could help others, if I share a problem I’m currently facing; trying to get up-and-running a learning project from the Solution Architect Module, a background process catching triggers.

It turn out, it needed reconfiguration of Orchestrator as a follow-up of change to Service Mode (physical device) which is mentioned to be the holy grail solution to a strange error message “Cannot bring the target application in the foreground. This action can only be performed when running in the main desktop.” No matter what, all those changes, it did not help at all.

I tweaked a lot, back-to-foreground in conjunction with attended or unattended both vice-versa as well, also with other PiP selections, just falling back on trial-error, no matter what, as soon as I open the App UiPath CC Agent, the background process catches the trigger and immediately, seeing the error on the output.

All I received was some, to me not friendly, response from a UiPath alien (responding bot).

Moderator, would you please remove this post/ Thanks in advance!

Hello @van-der-kamp!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

It seems a tweak :slight_smile: on property ‘Input mode’ (section Options) for each implemented [NApplication Card]-activity residing on several ‘event catching’-xaml’s passes me by the error “Cannot bring the target application in the foreground. This action can only be performed when running in the main desktop.” Solution set

‘Input mode’ to ‘Background’

Note
Be aware each time re-indication the target window the property will be set to its default which is not ‘background’ (but Hardware Events)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.