PIP mode issue

Getting below error while running the robot in PIP mode. Please provide the solution

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

The image displays configuration settings for an automation tool with various toggle options and dropdown menus for features like background start, persistence, runtime dependencies, and PiP options. (Captioned by AI)

@Purva,

Which activity throwing this error? Make sure you change the Input method to Simulate for Ui interactions like Click, Type etc.

it is giving an error at edge browser activity

Hello @Purva

Do you have the Microsoft Edge extension for UiPath installed?
And does it work without running in PiP?

Regards
Soren

ok @Purva,

Try this solutions.

thank you i am tried all settings. now browser steps are working now but i got below error

An error message in UiPath indicates that a type 'UiPath.Excel.WorkbookApplication' cannot be serialized and suggests marking it with the DataContractAttribute and DataMemberAttribute or ensuring the type is public with a parameterless constructor. (Captioned by AI)

@Purva,

Great! Kindly close the thread as the original issue is resolved!

For this new issue raise a fresh thread to get more experts attention. Meanwhile, I’m also looking into it.

Thanks,
Ashok :slight_smile:

@Purva,

The error message indicates that the type 'UiPath.Excel.WorkbookApplication' cannot be serialized and suggests marking it with the DataContractAttribute attribute or making the type public with a parameterless constructor. (Captioned by AI)

This occurs when you pass non serializable datatype through Arguments. Here it seems you are trying to pass Excel Process Scope or Excel Application scope from one workflow to other.