Subscribe

UiPath Insights

The UiPath Insights Guide

Custom Variables

Insights always ingests data via the pre-defined fields available in the Insights data model, but Admins can also configure custom variables extracted from robot logs and queues to use for calculating specific KPIs or building more specialized dashboards.

👍

Before you begin

To include custom variables for processes, you must first make sure they are added to logs in your automation via the UiPath.Core.Activities.AddLogFields activity in Studio, and then you must select them for ingestion.


To include custom variables for queues, you must first make sure they are added in workflows via an activity in Studio, and then select them for ingestion.

  • Use the UiPath.Core.Activities.AddQueueItem activity for Specific Data;
  • Use the UiPath.Core.Activities.SetTransactionStatus activity for Output Data and Analytics Data.

 

Configuring Custom Variables

To configure custom variables, an Admin must take the following steps:

  1. Open the 3-dot menu in the top-right corner of any Insights page, and select Configure Custom Variables. The configuration page opens, listing all custom fields that are available for extraction.

  2. Decide whether you want to configure custom variables for processes or queues by clicking the corresponding tab at the top of the configuration page.

2510
  1. In the Extract column, choose the custom variables that you would like to use when building dashboards.

  2. In the Type column, select the custom variable type. You can choose String, Number, or DateTime.

🚧

Important!

  • The fields are limited to 40 characters and any characters after this number will be cut. To add more than 40 characters, change the Insights.Etl.Json.MaxStringLen flag. You can add this flag in the Orchestrator web configuration and set the value according to your project's needs. For example:
    <add key="Insights.Etl.Json.MaxStringLen" value="60" />

  • The backfill percentage shows the progress of extracting a custom variable from all processes or queues. You will need to refresh the page to see the latest backfill percentage. This might take some time depending on the data size. Custom variable values will backfill from newest data to oldest. The field will be available for use shortly after the configuration is saved, you will not need to wait until it is 100% backfilled.

  • You can extract variables from a maximum of 500 processes or queues, and a maximum of 200 variables per process or queue.

  • If you configure the Type of a custom variable to Number make sure that it doesn't contain a , or other non-numeric characters such as $ as these characters are not supported. For numbers with special characters, please select type String.

  • Every change in the configuration of custom variables will cause a full new backfill for that specific process. The time of the backfill depends on the number of logs stored in the Insights database for that specific process.

  1. Save the configuration. All extracted variables for a specific Process should appear in an explore named *Process - ProcessName, and all extracted variables for a specific Queue should appear in an explore named *Queue- QueueName.

🚧

Important!

You can extract variables from a maximum of 500 processes or queues, and a maximum of 200 variables per process or queue.

Number of Custom Variables ConfiguredHardware ScaleNumber of ProcessesNumber of Robot Logs per ProcessApproximate Time for Extraction
30Large Scale11,000,0005 minutes
30Large scale140,000,000120 minutes

 

Editing an Existing Configuration

To edit an existing configuration, an Admin must take the following steps:

  1. Open the 3-dot menu in the top-right corner of any Insights page, and select Configure Custom Variables. The configuration page opens, listing all custom fields that are available for extraction.

  2. Decide whether you want to configure custom variables for processes or queues by clicking the corresponding tab at the top of the configuration page.

  3. To remove variables that were previously selected, uncheck the Extract checkbox.

  4. To change a variable’s type, select the new desired type from the dropdown.

  5. Make sure to save the configuration.

  6. Perform the following checks on existing dashboards that used a modified or removed variable:
    a. If you deleted the variable, make sure to remove any references to the variable from formulas that were created or modified, from filters, or inside visualizations;
    b. If you changed the variable type, ensure that the new type still applies correctly;

 

Configuration Example

This section provides an example of using a custom variable in a dashboard.

820

Take the following steps to configure custom variables:

  1. Select the ProcessCount variable for extraction, and choose the String type.

  2. Enable the Argument1_Email variable, and select the String type and then click Save.

1059
  1. Navigate back to Dashboards, create a new dashboard, and add a new tile.

  2. Choose the *Process - CustomLogs2 explore and then choose the CustomLogs2 view to use the configured custom variables from this process in your tile.

333

 

Custom Variables Null Cases

Custom variables can have a null value in some particular cases, as described in the following sections.

Scenario 1

If you use a field from the standard data model in a visualization paired with a process-specific custom variable field, and a process does not contain the custom variable in the robot logs, the value of all fields associated with the process that does not contain the custom variable in its robot logs is null.

2446

 

There are two ways to eliminate the null values for this scenario:
Option 1: Add the custom variable as a filter, and set the condition to is not null to remove the null values from the visualization.

931

Option 2: Set a filter for the process name that does include the custom variable. Note, however, that if you adopt this approach, you may run into the second scenario below.

2443

 

Scenario 2

If a custom variable is not present in all logs generated by a process, the logs that do not contain a value for that custom variable will show the variable's value as null as captured in the image below.

2443

The following example illustrates this particular case.

  1. Go to Configure Custom Variables. You can see that the Birthday2 custom variable field occurs in the CustomLogs2 process.
2319
  1. Open a new or existing dashboard and add a tile.
  2. Navigate to the CustomLogs2 explore. Select the Process Name field from the Jobs view and the custom variable field. In this case, the custom variable field is CustomLogs2.Birthday2.
  3. Click Run. The results you see should be similar to the ones shown in the following screenshot.
2458

 

To eliminate the null values, add the custom variable field as a filter. Lastly, set the condition to is not null, so that you can remove the null values from the visualization.

1584

 

📘

Note:

Both of these cases occur when you are viewing the custom field’s raw data. When you apply a function (Sum, Average, etc.) to the custom variables, you exclude null values.

 

Troubleshooting and Limitations

See our Troubleshooting section for information about troubleshooting and limitations.

Updated 23 days ago


Custom Variables


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.