- Release Notes
- Getting Started
- UiPath Assistant
- Installation and Upgrade
- Robot Types
- Robot Components
- Licensing
- Connecting Robots to Orchestrator
- Processes and Activities
- Logging
- Robot JavaScript SDK
- Specific Scenarios
- Windows Sessions
- Login Using Thales Luna Credential System
- Login Using NShield Key Storage Provider
- Redirecting Robots Through a Proxy Server
- Executing Tasks in a Minimized RDP Window
- Using Mapped Network Drives
- Stopping a Process
- Disable Stop Button
- Custom Package Folders and Network Paths
- CrowdStrike Integration
- Troubleshooting
- Unresponsive Robot Over RDP
- Duplicate Execution Logs
- Frequently Encountered Robot Errors
- Increased Process Execution Duration
- Enforced Package Signature Verification
- Message Too Large to Process
- Errors When Running as Administrator
- NuGet Packages Not Accessible After Migration
- User Access Control Prompt and UI Automation Activities
- .NET6 Projects Fail to Run
Picture In Picture
The Picture-in-Picture feature allows you to run attended processes in collaboration with the Robot. A process started in the Picture-in-Picture mode runs in an isolated Windows session, thus allowing you to use the machine while the process is running.
You can start a process in Picture-in-Picture mode either from the Debug tab in Studio, from StudioX, or directly from the UiPath Assistant from the Contextual Menu of a process.
UIPATH_SESSION_TIMEOUT
environment variable on the machine.
UIPATH_SESSION_TIMEOUT
variable as a system environment variable and restart the Robot Service.
Once a process is started in Picture-in-Picture mode, a preview window shows up on your desktop, providing real-time feedback from the process execution. The display window can be resized, moved around, placed in full screen, or put on top of other windows. You can exit the Picture-in-Picture mode at any moment by right-clicking the Picture-in-Picture Windows Taskbar entry, and selecting Close Window or simply closing the window. A confirmation dialog appears and choosing to close the PiP window stops the running process.
The following controls are available for the PiP window:
- - Enable this to take control of the PiP session, if this is disabled, your mouse and keyboard only work in the main session.
- - Enable this to keep the PiP window on top of other applications even when it's out of focus.
- Minimize - Minimizes the PiP window to the main session taskbar without interrupting the process.
- Maximize - Maximizes the PiP window.
-
Close - Closes the PiP window, stops any running process and logs off the PiP session.
When you first start a Picture-in-Picture session, a prompt asks for your Windows credentials. Please note that if you restart the machine you are not asked to provide the credentials again.
In the Project Settings section in Studio, a process can be marked as PiP Ready, meaning that it has been tested and can be safely run in a PiP Session. You can also set a process to start by default in a Picture-in-Picture session.
Invoke Activities such as Invoke Process, Invoke Workflow and Run Parallel Process have the option to choose where to start the new process.
This can be set from the Properties tab of the activity in the Misc > Target Session inside Studio.
Target Session
property can only be modified from Studio. Projects developed in StudioX need to opened in Studio to alter this property.
The options are:
- Current - The child process opens in the same session as the parent one
- Process Default - The child process uses the Process Settings
- Main - The child process starts in the main session regardless to where the parent process runs
-
Picture-in-Picture - The child process starts in the Picture-in-Picture session regardless to where the parent process runs
The Picture-in-Picture functionality of the machine can be either enabled through command-line, or manually when starting the PiP session for the first time on the machine.
Method |
Command |
Description |
---|---|---|
Manually |
The first time you start a Picture-in-Picture session from either Studio or Assistant, you are prompted to enable the PiP functionality on the machine. This requires administrator rights. | |
Command-line |
|
Allows you to enable or disable the Picture-in-Picture functionality on the machine. This setting is applied on the local machine and affects all users and is used for modifying existing installations. It can have the following parameters:
Enables the Picture-in-Picture functionality of the machine.
Disables the Picture-in-Picture functionality of the machine. Example:
UiRobot.exe PiP --Enable Administrator rights are required to execute these commands. |
Command-line |
|
Allows you to enable the Picture-in-Picture functionality of the machine during the UiPath command-line installation. To enable it, use the following parameter:
Example:
|
There are a few things to consider when using the Picture-in-Picture feature:
- If you are using a PIN to log into the main Windows session, you are asked for your credentials every time you start a Picture-in-Picture session.
- When the Picture-in-Picture session is opened, start-up programs open in the PiP session as well. Because of this, some settings for peripheral devices can be reset to their default values (such as lighting settings for keyboard and mouse).
- If you enable the Remote Desktop Session when the prompt appears while running a PiP Process, you need to log out and log back in the main Windows Session for the changes to take effect.
- The machine cannot be restarted or shut down while the PiP session is opened as the PiP session needs to be closed beforehand.
- Due to Operating System limitations for running Picture-in-Picture, Home Editions of Windows 8 and 10 are not supported.
- The clipboard is shared between the PiP session and the main session.
- Run as administrator cannot be used in the PiP session.
- Only one Picture-in-Picture session can be started at a time.
- For a user to start a PiP session, it must be granted
Allow Log On Locally
permissions.
Automations that use Microsoft Office resources do not run successfully in Picture-in-Picture if the resources are already open in the main session. In order to make sure that automations run smoothly in PiP, you can do the following:
- Close the resource used by Microsoft Office applications from the main session so they can be opened in the PiP session.
-
Use an
InvokeIsolatedWorkflow
activity to invoke the part of the automation using Microsoft Office and set its Target Session toPicture-in-Picture
from Studio.Note: Microsoft Outlook is not affected by the limitation described above.
The browser data from a Picture-in-Picture session is saved on the main session by default. If there is an open Google Chrome or Microsoft Edge instance on the main session, it has to use another user profile in the PiP. This is done automatically by the Open Browser activity. We cannot have a specific browser (let's say Chrome) be open with the same user profile both in the PiP session and the Main session at the same time.
However, the mode and location of the browser data can be configured from the Open Browser activity properties.
UserDataFolderMode
property to Automatic
allows the browser to use separate user data folders in the main and PiP sessions.
%LocalAppData%\UiPath\PIP Browser Profiles
folder in this mode, the corresponding browser extension needs to be enabled again.
UserDataFolderMode
property to DefaultFolder
. This means that both the main and PiP sessions use the same folder for the browser user data.
UserDataFolderMode
to DefaultFolder
the browser only works in one session at a time. If the browser is opened in the main session, it does not work in the PiP
session. This is because the same browser profile cannot be used in two simultaneously sessions.
Target Session
and UserDataFolderMode
are properties that can only be modified in Studio. Projects developed in StudioX need to opened in Studio to alter these properties.
CustomFolder
allows you to specify different user data folders for the main and PiP sessions.
Based on your environment, certain Windows policies might cause the PiP session to request a login every time it starts.
This also happens when Windows Business Hello PIN is used. PIN authentication only works the first time a PiP session is spawned. After that, the PiP session can be logged in only using username and password. As this might not be a best case scenario for some organizations, we are currently looking to correct this behavior in the future.
When launching a process in PiP for the first time, it takes longer than usual until the actual execution starts. This happens because the PiP session has to start all its Windows processes and start-up programs.
Recommendation: Launch a PiP session when starting the machine and keep it open throughout the day. This uses less resources than launching a new PiP session for every process.
AllowLogOnLocally
can restrict the PiP session from starting. The user trying to start a PiP session must be in a group that has the needed
permissions, or must be explicitly given the permission.
When VPN clients are used in conjunction with PiP, there are some situations in which conflicts may occur. For example, if the VPN clients are set to start when the user logs in, when PiP starts, another instance of the VPN client is started. This causes a conflict between the two sessions, since the VPN client is set to run a single instance per user.
To resolve these scenarios, we have compiled a list of the most common VPN providers with their particularities, plus resolutions for the known issues that may occur.
Observed Behavior
When the Cisco Anyconnect client is running on the user machine and a PiP session is launched, another Cisco Anyconnect client is started in the PiP session.
Cause The Cisco VPN server is set to accept one session per user at a time. When the PiP session starts, Cisco Anyconnect disconnects the VPN in the main session and throws an error in the PiP session.
This shuts down the user's VPN connection, leaving the user unable to access services that require a VPN connection.
Resolution Do not set the VPN client to start automatically at Windows start-up. This stops the VPN client from starting a new connection when the PiP session starts and tunnels the PiP traffic through the main Windows session.
Observed Behavior
When the PiP session is started, another Zscaler client is launched in the PiP session. This causes the Zscaler client to disappear from the main Windows session. Everything works as expected until the user closes the PiP session. When the PiP session is closed, the Zscaler client remains in a limbo state and the user must sign out and sign in again, or restart the machine to open the Zscaler.
Cause We are currently investigating this behavior with Zscaler to find the cause. Resolution We are currently investigating this behavior with Zscaler to find a resolution.
Observed Behavior
When a PiP session is started, the user is disconnected from the VPN.
Cause The Pulse secure client cannot handle two Windows sessions for the same user. Resolution We recommend opening a ticket with Pulse Secure team.
In a scenario where multiple users are connected at the same time to a Windows Server, only one PIP session can be launched on the machine. This means only one PiP session can be opened on a single machine, regardless of which user or session type was used to open the PiP session.
- Controls
- Marking a process as PiP ready
- Using PiP for Invoke activities
- Enabling PiP
- Known Issues and Limitations
- Microsoft Office automation
- Using web browser in PIP sessions
- PiP Requires login every time
- Workflow takes a long time to start in PiP
- Windows policies
- VPN client not working in PiP
- Cisco Anyconnect
- Zscaler
- Pulse secure
- Palo Alto Global Protect
- PIP and Windows Servers
- PIP and Other Virtualized Environments