# Create Document Validation Action

> `UiPath.IntelligentOCR.Activities.CreateDocumentValidationAction`

`UiPath.IntelligentOCR.Activities.CreateDocumentValidationAction`

## Description

Creates an action of type `Document Validation` in Action Center. The output of the **Create Document Validation Action** activity can be used with the [Wait for Document Validation Action and Resume](https://docs.uipath.com/activities/other/latest/document-understanding/wait-for-document-validation-action-and-resume) activity to suspend and resume orchestration workflows upon human action completion in Action Center.

:::note
Make sure that the connection between robot and Orchestrator is correctly established. Visit [Connecting robots to Orchestrator](https://docs.uipath.com/orchestrator/standalone/2023.10/user-guide/connecting-robots-to-orchestrator) for more information about how to connect robots to Orchestrator.
:::

## Project compatibility

**Windows-Legacy | Windows**

## Configuration

#### Designer panel

**Action Details**
* **ActionCatalog** - Specifies the name of the action catalog from UiPath® Action Center. Make sure the action catalog exists prior to the action creation, otherwise action creation fails, resulting in an error. Visit [Action Catalogs](https://docs.uipath.com/action-center/automation-cloud/latest/user-guide/action-catalogs) for more information about action catalogs..
* **ActionFolderPath** - Specifies which Orchestrator folder the action should be created in, if different from the folder of the current process for an auto-provisioned Robot user.
* **ActionPriority** - Specifies the priority level of the action. The possible values are **Low**, **Medium**, **High**, and **Critical**. The default value is **Medium**. This input only accepts values of type `UiPath.IntelligentOCR.Activities.Actions.Model.DocumentActionPriority`.
* **ActionTitle** - Specifies the title of the action. All actions should have a title for identification and accessing purposes in Action Center.

**Storage Details**
* **BucketDirectoryPath** - The path of the directory inside the storage bucket where the files used as part of the action are to be stored and retrieved. This field only supports string values, with `/` as the separator to indicate subdirectories. For example "Finance/AccountsPayable".
* **BucketName** - Specifies the name of an existing storage bucket where the action stores its data. The bucket should exist in the same Orchestrator folder as the one the action will be created in.
  :::note
  Make sure that you have enabled all needed permissions for Orchestrator. Go to **Folder Permissions** for the Robot role in Orchestrator and verify the following:
  * For **Storage Files** permissions, `Create` and
  `Edit` options are selected.
  * For **Storage Buckets** permissions, `View` option
  is selected.
  * For **Actions** permissions, `Create` option is
  selected.
  :::

**Document Validation Data Input**
* **AutomaticExtractionResults** - The automatically generated extraction results, stored in an `ExtractionResult` proprietary variable. If a variable is added to this field, the results of the automatic extraction results are displayed, enabling you to review and modify them. If left empty, the Validation Station opens for the user to validate the data manually. This field supports only `ExtractionResult` variables.
* **DocumentObjectModel** - The Document Object Model you want to use to validate the document against. This model is stored in a `Document` variable and can be retrieved from the **Digitize Document** activity. Visit [Digitize Document](https://docs.uipath.com/activities/other/latest/document-understanding/digitize-document) to learn how to achieve this. This field supports only `Document` variables.
* **DocumentPath** - The path to the document you want to validate. This field supports only strings and `String` variables.
* **DocumentText** - The text of the document itself, stored in a `String` variable. This value can be retrieved from the **Digitize Document** activity. Visit [Digitize Document](https://docs.uipath.com/activities/other/latest/document-understanding/digitize-document) to learn how to achieve this. This field supports only strings and `String` variables.
* **Taxonomy** - The Taxonomy against which the document is to be processed, stored in a `DocumentTaxonomy` variable. This object can be obtained by using a [Load Taxonomy](https://docs.uipath.com/activities/other/latest/document-understanding/load-taxonomy) activity or by de-serializing a string into a `DocumentTaxonomy` object. This field supports only `DocumentTaxonomy` variables.

**Action Output**
* **ActionObject(Output)** - Provides the action object returned by Action Center. This action object should be passed in as an input to the **Wait for Document Validation Action and Resume** activity.

#### Properties panel

**Action Details**
* **ActionCatalog** - Specifies the name of the action catalog from UiPath® Action Center. Make sure the action catalog exists prior to the action creation, otherwise action creation fails, resulting in an error. Visit [Action Catalogs](https://docs.uipath.com/action-center/automation-cloud/latest/user-guide/action-catalogs) for more information about action catalogs..
* **ActionFolderPath** - Specifies which Orchestrator folder the action should be created in, if different from the folder of the current process for an auto-provisioned Robot user.
* **ActionPriority** - Specifies the priority level of the action. The possible values are **Low**, **Medium**, **High**, and **Critical**. The default value is **Medium**. This input only accepts values of type `UiPath.IntelligentOCR.Activities.Actions.Model.DocumentActionPriority`.
* **ActionTitle** - Specifies the title of the action. All actions should have a title for identification and accessing purposes in Action Center.

**Action Output**
* **ActionObject(Output)** - Provides the action object returned by Action Center. This action object should be passed in as an input to the **Wait for Document Validation Action and Resume** activity.

**Common**
* **ContinueOnError** - Specifies if the automation should continue even when the activity throws an error. This field only supports `Boolean` values (True, False). The default value is **False**. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to **True**, the execution of the project continues regardless of any error.
* **DisplayName** - Specifies the display name of the activity.
* **Timeout (milliseconds)** - Specifies how long to wait (in milliseconds) for the activity to connect to Orchestrator before an error is thrown. The default value is 30000 milliseconds (30 seconds). This field supports only integer and `Int32` variables.

**Document Validation Data Input**
* **AutomaticExtractionResults** - The automatically generated extraction results, stored in an `ExtractionResult` proprietary variable. If a variable is added to this field, the results of the automatic extraction results are displayed, enabling you to review and modify them. If left empty, the Validation Station opens for the user to validate the data manually. This field supports only `ExtractionResult` variables.
* **DocumentObjectModel** - The Document Object Model you want to use to validate the document against. This model is stored in a `Document` variable and can be retrieved from the **Digitize Document** activity. Visit [Digitize Document](https://docs.uipath.com/activities/other/latest/document-understanding/digitize-document) to learn how to achieve this. This field supports only `Document` variables.
* **DocumentPath** - The path to the document you want to validate. This field supports only strings and `String` variables.
* **DocumentText** - The text of the document itself, stored in a `String` variable. This value can be retrieved from the **Digitize Document** activity. Visit [Digitize Document](https://docs.uipath.com/activities/other/latest/document-understanding/digitize-document) to learn how to achieve this. This field supports only strings and `String` variables.
* **Taxonomy** - The Taxonomy against which the document is to be processed, stored in a `DocumentTaxonomy` variable. This object can be obtained by using a [Load Taxonomy](https://docs.uipath.com/activities/other/latest/document-understanding/load-taxonomy) activity or by de-serializing a string into a `DocumentTaxonomy` object. This field supports only `DocumentTaxonomy` variables.

**Misc**
* **DisplayMode**: Select the desired display of the Validation Station. You can choose from the following options:
  + **Classic**: This is the standard Validation Station view. For more information, visit [Classic Validation Station](https://docs.uipath.com/activities/other/latest/document-understanding/classic-validation-station).
  + **Compact**: This is an enhanced version of the Validation Station view, which preserves the same functionality. For more information, visit [Compact Validation Station](https://docs.uipath.com/activities/other/latest/document-understanding/compact-validation-station).
* **EnableRTLControls**: If set to True, it repositions the Validation Station controls according to right-to-left (RTL) languages.
* **FieldsValidationConfidence %** - Set the upper limit confidence score to be used when rendering the Validation Station.
  :::note
  **FieldsValidationConfidence %** is ignored when using the **Compact** display mode.
  :::
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
* **ShowOnlyRelevantPageRange** - If selected, only the page range mentioned in the extraction results is shown and the pages that are outside the range are hidden.

**Storage Details**
* **BucketDirectoryPath** - The path of the directory inside the storage bucket where the files used as part of the action are to be stored and retrieved. This field only supports string values, with `/` as the separator to indicate subdirectories. For example "Finance/AccountsPayable".
* **BucketName** - Specifies the name of an existing storage bucket where the action stores its data. The bucket should exist in the same Orchestrator folder as the one the action will be created in.
  :::note
  Make sure that you have enabled all needed permissions for Orchestrator. Go to **Folder Permissions** for the Robot role in Orchestrator and verify the following:
  * For **Storage
  Files** permissions, `Create` and `Edit` options are selected.
  * For **Storage
  Buckets** permissions, `View` option is selected.
  * For **Actions**
  permissions, `Create` option is selected.
  :::

## Using the Create Document Validation Action

The **Create Document Validation Action** activity can be used with Studio Desktop, in Action Center, or with Orchestrator.
