PIP Mode Automation not working with Desktop application, RDP (Selector) and RDP (Computer Vision)

I am working on the below three POCs, The code is running fine from Studio but getting fail for all the below scenarios while running via UiPath Assistant.

  1. PIP automation to operate desktop applications.( Notepad, Chrome, etc..)
  2. PIP automation to operate RDP machine where UiPathRemoteRuntime.msi is already installed.
  3. PIP automation to operate RDP machine where UiPathRemoteRuntime.msi is not installed. (Computer Vision getting fail)

I tried to run the automation with Simulate, Window Messages and Background input methods and still getting common error as below

“Cannot bring the target application in the foreground. This action can only be performed when running in the main desktop.”

I am using the below version of Studio, RemoteRuntime and Dependencies:
Studio 2024.10.18 LTS
UiPathRemoteRuntime 25.10.160.17874

UiPath.System.Activities: [25.10.0]
UiPath.UIAutomation.Activities: [25.10.21]

I am seeking technical guidance to ensure the feasibility of this POC.

1 Like

Hi!

Did you set it up to run in a Virtual Desktop or a Child Session?
Assistant - Robot session - Virtual Desktop
Assistant - PiP - Child Session

You can change between them in your project settings:
Assistant - Robot session (previously Picture-in-Picture)

Hello @sven.wullum1 ,
Thank you for your acknowledgement, Yes I have set it up with Virtual Desktop in consideration of user’s multi-tasking while robot is running in his machine.

Happy to help!

As you can see from the compatibility matrix both “Hardware Events UIAutomation” and “Image-Based Automation” are not supported in PiP-Virtual Desktop.

You could try switching to using Child Session instead.
The user will still be able to use other applications as normal, the biggest exception being that both the Child Session and the users session will share the same clipboard.