Visualyze Documentation
Visualyze Documentation
Visualyze Documentation
  • Welcome to Documentation
  • Requirements
  • Tutorials
    • Sample Robots
      • Email Reminder Bot
      • Automate: Password Generator
      • Robot For Periodic Covid19 Status Reports
      • Remove Blank Rows From Excel File
      • Translate Any Language to English
      • Gmail Attachment Sort Bot
      • Data Table Extraction (Pdf to Excel)
  • Courses & Certifications
    • Automation Courses & Guides
    • Level 1 - Beginner
  • Getting Started
    • Robot Studio
      • User Interface
        • Workflow Designer
      • Robots
      • Workflows
      • Activities
      • Document AI
        • Document Classifier
          • Create Classifier Window
          • Configure Classifier Window
          • Types
            • Keyword Classifier
        • Document Extractor
          • Create Extractor Window
          • Configure Extractor Window
          • Types
            • Regex Extractor
            • Form Extractor
            • Skill Extractor
            • LLM Extractor
          • Extractor Constraints
        • Document Viewers
          • Image Document Viewer
        • Text Preprocessing
        • Document Validation
          • Validation Window
      • Variables
        • User-defined variables
        • Activity variables
        • Objects
      • Arguments
      • Input & Output
      • Handling Files
      • Data Manipulation & Conversion
      • Editor Windows
        • String Modifications Window
        • PDF Viewer Window
        • XPath Helper
        • JSONPath Helper
        • Web Request Builder
        • Desktop Element Selector Editor Window
        • Web Element Selector Editor Window
        • Configure Scrape Data Window
        • Filter DataTable Window
        • Filter Data Tables Window
        • Build Data Table Window
        • Add Data Row Window
        • Html Editor Window
        • Create Document AI Client Window
        • Configure Task Data Window
      • Record & Execute
        • Desktop Recorder
          • Desktop Actions
          • Desktop Element Property
          • Desktop Element Conditions
        • Web Recorder
          • Web Actions
          • Web Properties
          • Web Element Conditions
      • Publish a Robot
      • Create Bot - Hello Human!
      • Debugging
    • Visualyze Assistant
      • Human Tasks
        • Introduction
        • Tasks Listing
        • Validation Task Window
    • Robot Cloud
      • Tenant & Workspaces
      • Robots
      • Hosts
      • Executions
      • Schedule
      • Storage
    • Document AI
    • Robot AI
    • Human Tasks
      • Creating a Robot with Human Tasks
      • Task Assignments
      • Completing Tasks
      • Managing Tasks
      • Advanced Topics
      • Troubleshooting
  • Activities
    • Overview
    • Workflow
      • Control
        • Invoke Method
        • Condition
        • Start
        • Assign
        • Assign Multiple
      • Loop
        • Repeated Loop
        • For Each
        • Loop End
        • Examples
      • Run Workflow
      • Write Log
    • DateTime
      • Subtract Date Time
      • Get DateTime
      • Convert DateTime
      • Add DateTime
      • DateTime Formats
        • Standard date and time format
        • Custom date and time format strings
    • Local System
      • Wait For Text On Screen
      • Wait For Hot Key
      • Show Desktop
      • Suspend Service
      • Wait For Service
      • Wait For Process
      • Resume Service
      • Stop Service
      • Start Service
      • Set Default Printer
      • Empty Recycle Bin
      • Run Command
      • Run VBScript
      • Power
      • Play Sound
      • Ping
      • Invoke Python Script
      • Get System Info
      • Get Display Info
      • Get Default Printer
    • Network
      • Web
        • Send Notification
        • Wait For Notification
        • Send HTTP Request
      • SSH
        • SSH Run Command
        • SSH Disconnect
        • SSH Connect Scope
      • FTP
        • Synchronize FTP Folder
        • Move FTP Files
        • Upload Folder
        • Upload File
        • Rename File
        • List FTP Folder
        • Invoke FTP Command
        • Folder Exists
        • File Exists
        • Enumerate Items
        • Download Files
        • Download Multiple Files
        • Download Multiple Files
        • Delete FTP Folder
        • Delete FTP File
        • Create FTP Folder
        • Close FTP Connection
        • Open FTP Connection
    • File
      • Common
        • List Folders
        • Rename File
        • Increment
        • Decrement
        • Print File
        • File Exists
        • Path Exists
        • Read Lines
        • Folder Exists
        • Read File Metadata
        • Wait For Files
        • Compress File/Folder
        • Write File
        • Decompress File
        • Read Text File
        • Move Folder
        • Move File
        • List files
        • Delete Folder
        • Delete File
        • Encode Text
        • Decode Text
        • Create Temp Folder
        • Create Temp File
        • Create Folder
        • Copy Folder
        • Copy File
        • Append Line
        • Sanitize Filename
      • XML
        • Set Element Value
        • Set Element Attribute
        • Insert Element Value
        • Get HTML Element
        • Get Element Value
        • Get Element Attribute
        • Evaluate XPath
        • Delete Element
        • Delete Attribute
      • PDF
        • Print PDF File
        • Append Image To PDF
        • Digitally Sign PDF
        • Validate PDF Digital Sign
        • Extract Image From PDF
        • Extract PDF Page
        • Extract Table From PDF
        • Extract Text From PDF
        • Merge PDF Files
        • Read PDF Elements
      • JSON
        • Filter JSON Array
        • Filter JSON Keys
        • Get Entry By Index
        • List JSON Properties
        • Json Array Entry Count
        • Data table to JSON Array
        • JSON Array to Data table
        • Set Key Value
        • Evaluate JSON Path
        • Delete Key Value
        • Create JSON
      • CSV
        • Write Csv File
        • Read Csv File
    • Collection
      • Find Item In Collection
    • Data
      • List
        • Create List
        • Add To List
        • Apply List Operation
        • Filter List
        • List to File
      • Dictionary
        • Add To Dictionary
        • Lookup Dictionary
        • Create Dictionary
      • String
        • Modify Text
        • Calculate Text Similarity
        • Replace Character
        • Find and Replace
        • Remove Character
        • Format Text
        • Trim Text
        • Split Text
        • Replace Text
        • Pad Text
        • Join Text
        • Get Text Length
        • Get Sub Text
        • Generate Random Text
        • Convert To Text
        • Compare Text
        • Change TextCase
        • Apply Regex
        • Append a Line
      • Datatable
        • DataRow
          • Get Data Row Values
          • Remove Data Row
          • Add Data Row
          • Find Row
          • Apply Row Filter
          • Remove Duplicate Rows
        • DataColumn
          • Rename Data Column
          • Remove Data Column
          • Add Data Column
          • Insert Data Column
          • Get Data Column
        • Apply DataTable Operations
        • Filter Data Tables
        • String To Data Table
        • Append Data Table
        • Extract Row/Column
        • Sort Data Table
        • Merge Data Table
        • LookUp Data Table
        • DataTable To String
        • Clear Data Table
        • Build Data Table
        • Join Data Table
      • Database
        • Execute Non Query
        • Execute Query
        • Close Connection
        • Open Connection
      • Image
        • Barcode
          • Encode String
          • Decode Barcode
          • Decode Multiple Barcode
        • Take Screenshot
        • Image To File
        • QR to Image
        • Image to QR
      • Cryptography
        • Hash File
        • Hash Text
        • Decrypt Text
        • Decrypt File
        • Encrypt Text
        • Encrypt File
    • Application
      • PowerShell
        • Invoke PowerShell
      • Mail
        • Outlook
          • Archive Outlook Mail
          • Replyto Outlook Mail
          • Save Outlook Attachment
          • Save Outlook Mail
          • Delete Outlook Mail
          • Move Outlook Mail
          • Get Outlook Contact List
          • Send Outlook Mail
          • Get Outlook Mail
        • Save Mail
        • Save Attachment
        • Get POP3 Mail
        • Send SMTP Mail
        • Move IMAP Mail
        • Get IMAP Mail
    • System
      • Kill Process
      • Start Process
      • ClipBoard
        • Set To Clipboard
        • Get From Clipboard
      • Launch Application
    • Environment
      • Play Beep
      • Get Environment Variable
      • Get Environment Folder
      • Get Credential
      • Request Credentials
      • Set Credential
    • Microsoft Office
      • Excel
        • Cell
          • Write Cell Value
          • Set Cell
          • Replace Cell
          • Read Cell Value
          • Read Cell Formula
          • Get Cell Color
          • Find Cell
          • Get Cell
        • Sheet
          • Copy Paste Sheet
          • Get Workbook Sheets
          • Get Workbook Sheet
          • Rename Sheet
          • Delete Sheet
          • Create Sheet
          • Read Sheet
        • Rows
          • Find Row
          • Read Row
          • Insert Row
        • Range
          • Apply Style
          • Write Range
          • Read Range
          • Fill Data Range
          • Delete Cell/Range
          • Copy Paste Range
          • Excel Range To Image
        • Columns
          • Read Column
          • Insert Column
        • Open Excel File
        • Close Excel File
        • Delete Row Column
        • Save Excel File
        • Find Duplicates
        • Excel To HTML
      • Word
        • Open Word Document
        • Close Word Document
        • Insert DataTable
        • Insert Image
        • Read Text
        • Write Text
        • Replace Text
        • Save Word Document
        • Append Text
        • Get Element
        • Get DataTables
        • Set Bookmark Content
    • UI Automation
      • Vision
        • Wait For Text
        • Image Exists
        • Indicate On Screen
        • Run OCR on Image
        • Run OCR on Screen
        • Check Text Exists
        • Find Image Position
        • Get Text Position
        • Get Element From Position
        • Hover Image
        • Hover Text
        • Click Text
        • Wait For Image
        • Click Image
      • Forms
        • Select File
        • Select Folder
        • Show Confirmation
        • Show Desktop Alert
        • Show Form
        • Show Input Message Box
        • Show Message
      • Web Browser
        • Take WebPage Screenshot
        • Goto URL
        • Wait
        • Get Table
        • Get Attribute
        • Select
        • Get Text
        • Find Elements
        • Goto URL
        • Set Text
        • Open Web Browser
        • Close Web Browser
        • Click
        • Set Attribute
        • Set Property
        • Scrape Data
        • Switch To
        • Web Automation Session Activity
        • Send Keys
      • SAP
        • Row
          • Set Scroll Position
          • Get All Rows
        • Connection
          • Get Active Session
          • Create Connection
          • End Transaction
          • Start Transaction
        • Action
          • Select Radio Button
          • Set CheckBox
          • Send Virtual Key
          • Set Focus
          • Select Menu Item
          • Click ComboBox
          • Get Text
          • Read Statusbar Info
          • Select ComboBox Item
          • Click Button
        • Column
          • Select Column
        • Find
          • Wait For Element
          • Find By Id
          • Find By Name
      • Desktop
        • Press Key
        • Type
        • Click
        • Focus Window
        • Change Window State
        • Change Window Position
      • CMD
        • Wait For Text
        • Write to Cmd Session
        • Read from Cmd Session
        • Close Cmd Session
        • Open Cmd Session
    • Document AI
      • Create Document AI Client
      • Text
        • Extract Text
        • Extract Entity
        • Invoke LLM
      • Tasks
        • Classify Document
        • Run Extractor
        • Preprocess Document
        • Show Validation Window
        • Update Extracted Field
    • Robot Cloud
      • Analytics
        • Update DataSet
        • Create DataSet
      • DataStore
        • Get Variable
        • Update Variable
        • Get Credential
        • Run Document Query
        • Update Document
        • Get Document
      • Human Task
        • Get Tasks
        • Remarks
          • Add Remark
        • Show Tasks
        • Update Task Status
        • Create Task
    • SAP
      • BAPI
        • Create SAP BAPI Connection
        • Invoke SAP BAPI
  • Integrations
    • GSuite
      • Setup
      • Activities
        • Create GSuite Connection Activity
        • Get Google Token
        • Drive
          • Upload File
          • Move File
          • Get File Info
          • Find Files And Folders
          • Download File
          • Delete File
          • Create New Spreadsheet
          • Create Folder
          • Create Document
          • Copy File
        • Sheets
          • Delete Filter
          • Find And Replace Cells
          • Column
            • Read Column
            • Add/Delete Columns
            • Insert Column
            • Hide/Unhide Columns
          • Row
            • Append Row
            • ReadRow
            • Add/Delete Rows
            • Insert Row
            • Hide/Unhide Row
          • Sheet
            • Download Spreadsheet
            • Get Sheet Info
            • Read Sheet
            • Hide Sheet
            • Unhide Sheet
            • Get Sheets
            • Copy Sheet
            • Rename Sheet
            • Delete Sheet
            • Add New Sheet
          • Range
            • Auto Fill Range
            • Copy Paste Range
            • Merge Range
            • UnMerge Range
            • Delete Range
            • Write Range
            • Clear Range
            • Read Range
          • Cell
            • Write Cell
            • Read Cell
    • Office 365
      • Setup
      • Activities
        • Excel
          • Create WorkBook
          • Add Sheet
          • Get Sheets
          • Read Cell
          • Write Cell
          • Read Column
          • Read Row
          • Read Range
          • Write Range
          • Append Range
          • Delete Range
          • Clear Range
          • Rename Sheet
          • Copy Range
          • Copy Sheet
          • Create Table
          • Delete Column
          • Delete Rows
          • Insert Column
          • Insert Rows
          • Get Table Range
          • VLookup Range
          • Get Cell Color
          • Set Range Color
        • Get Microsoft Token
        • Create Office365 Connection
        • Outlook
          • Get Mail
          • Get Contacts
          • Delete Mail
          • Send Mail
          • Move Mail
          • Forward Mail
          • Set Mail Categories
        • Files
          • Copy Item
          • Create Folder
          • Delete Item
          • Download File
          • Export As PDF
          • End Drive Loop
          • Find Files And Folders
          • Foreach File/Folder
          • Get Item Info
          • Move Item
          • Share Item
          • Upload File
        • Calendar
          • Add Attachment
          • Add Attendee
          • Add Location
          • Create Event
          • Delete Event
          • Find Meeting Times
          • Get Calendars
          • Modify Event
          • RSVP
          • Search Events
    • Azure
      • Run Form Recognizer
Powered by GitBook
On this page
  • Text Constraints
  • Number Constraints
  • Date Constraints
  • List Constraints
  • Symbol Constraints
  • General Constraints
  1. Getting Started
  2. Robot Studio
  3. Document AI
  4. Document Extractor

Extractor Constraints

Automatically validate the extracted data using constraints

The Extractor Constraints feature in Robot Studio allows you to automatically validate the extracted data using constraints. By applying specific constraints, you can ensure the accuracy and reliability of the extracted data. To utilize this feature effectively, it is important to understand the concept of creating human tasks for validation.

Overview

Extractor constraints assist the user in auto-validating the extracted data. This validation process occurs within the Task window. To initiate the validation, you need to create a Task with the ExtractionResult. Detailed information on creating human tasks can be found in the "Creating Human Tasks" section.

The validation using constraints takes place when the user changes the Task status to 'Done'. At this point, the specified constraints are applied to the extracted data for validation. If the data does not satisfy the constraints, the user is notified, and the task will not be saved. The type of constraints applied to a field depends on its field type. There are six types of constraints available: Text Constraints, Symbol Constraints, Number Constraints, Date Constraints, List Constraints, and General Constraints.

Creating Human Tasks

To utilize the Constraints feature effectively, it is important to create human tasks for validating the extracted data. The process of creating human tasks involves defining the validation requirements and configuring the tasks accordingly. This documentation primarily focuses on the Extractor Constraints feature, but you can refer to the relevant Robot Studio documentation for detailed instructions on creating human tasks.

Configuring Constraints

The Create Document Extractor Window allows you to specify the constraints for each field. Here's how you can configure the constraints:

  1. Locate the field for which you want to set constraints.

  2. Under the options dropdown for the field, you will find the constraints applicable to the field type. Only the relevant constraints for the field type will be displayed.

  3. Select the desired constraint(s) for the field from the dropdown menu. For example, if the field is of type Text, you may choose Text Constraints like Lower Case, Upper Case, Patterns, or Max. Characters.

  4. If you want the constraint to be enforced, make sure to select the Enforce Constraints option. This ensures that the specified constraints will be applied during validation.

  5. Repeat the above steps for other fields as needed, configuring constraints based on their respective types.

By specifying the constraints for each field and enabling the Enforce Constraints option, you can ensure that the extracted data is validated according to the defined rules. This helps in maintaining data integrity and accuracy during the automation process.

Text Constraints

Text constraints are applicable to fields of the Text type. These constraints ensure that the data meets specific requirements for text fields. The following constraints are available under Text Constraints:

Lower Case

This constraint allows only lower case characters in the extracted data. Any uppercase characters will be considered invalid.

Upper Case

This constraint allows only upper case characters in the extracted data. Any lowercase characters will be considered invalid.

Patterns

The Patterns constraint enforces that the extracted data should fully match a specified regular expression (regex) pattern. The regex engine used for pattern matching is PCRE (Perl Compatible Regular Expressions).

Max. Characters

The Max. Characters constraint ensures that the total number of characters in the extracted data does not exceed the specified limit. If the extracted data exceeds the defined limit, it will be considered invalid.

Number Constraints

Number constraints are applied to fields of the Number and Currency types. These constraints validate the extracted numerical data. The following constraints are available under Number Constraints:

Max Digits

This constraint specifies the maximum number of digits allowed in the extracted number. If the extracted number exceeds the defined limit, it will be considered invalid.

Min Digits

The Min Digits constraint specifies the minimum number of digits required in the extracted number. If the extracted number does not meet the minimum digit requirement, it will be considered invalid.

Allow Decimal Notation

This constraint allows the extracted number to have decimal notation (e.g., 12.34). If this constraint is not enabled, only whole numbers will be considered valid.

Max Places

The Max Places constraint defines the maximum number of decimal places allowed in the extracted number. If the extracted number exceeds the specified decimal place limit, it will be considered invalid.

Min Places

This constraint specifies the minimum number of decimal places required in the extracted number. If the extracted number does not meet the minimum decimal place requirement, it will be considered invalid.

The Max Places and Min Places Constraints are enabled only if Allow Decimal notation constraint is applied.

Limit Decimal Separator

The Limit Decimal Separator constraint ensures that the extracted number uses a specific decimal separator character (e.g., period "." or comma ","). If the extracted number uses a different decimal separator, it will be considered invalid.

Allow Symbols

This constraint allows only the specified symbols in the extracted number. If this constraint is not enabled, the presence of symbols in the extracted number will be considered valid.

Date Constraints

Date constraints are applicable to fields of the Date and DateTime types. These constraints validate the extracted date values. The following constraint is available under Date Constraints:

Format

The Format constraint specifies the required format for the extracted date. The extracted date must match the specified format; otherwise, it will be considered invalid.

List Constraints

List constraints are applied to fields of the Select and MultiSelect types. These constraints validate the extracted data against a predefined list of values. The following constraint is available under List Constraints:

Restrict Other Values

The Restrict Other Values constraint ensures that the extracted data belongs to the predefined list of values. If the extracted data does not match any of the predefined values, it will be considered invalid.

Symbol Constraints

Symbol constraints are applicable to fields of the Text type. These constraints validate the extracted data based on specific symbol requirements. The following constraints are available under Symbol Constraints:

Alpha

The Alpha constraint allows only alphabetic characters (A to Z) in the extracted data. Any non-alphabetic characters will be considered invalid.

Numeric

The Numeric constraint allows only numeric characters (0 to 9) in the extracted data. Any non-numeric characters will be considered invalid.

Custom Characters

The Custom Characters constraint restricts the extracted data to specific characters. If you want to allow only certain characters, you can define them as custom characters. For example, if you want to allow only the characters "$" and "%," you should specify "$%" as the custom characters. Any characters other than the specified custom characters will be considered invalid.

If both Alpha and Numeric is selected, then both alphabets and numbers can be contained in the text. If Custom Characters are also specified, then that characters will also be allowed.

General Constraints

General constraints are applicable to all type of fields. It includes only the "Check Expression" constraint.

Check Expression

This constraint allows you to validate the extracted data using a Boolean expression. You can use the names of fields as variables in the expression to perform specific validations. Here is an example:

InvoiceNumber.Length < 12

In this example, the expression checks whether the data in the InvoiceNumber field has a total character count less than 12. If the expression evaluates to true, the data is considered valid. If the expression evaluates to false, the data is considered invalid.

You can create custom Boolean expressions using operators such as comparison operators (<, >, <=, >=, ==, !=), logical operators (&&, ||, !), and arithmetic operators (+, -, *, /). The variables in the expression refer to the fields in the extracted data.

By utilizing the Check Expression constraint, you can define complex validation rules based on your specific requirements and ensure the accuracy and integrity of the extracted data.

By understanding and utilizing the available constraints effectively, you can ensure the accuracy and integrity of your extracted data.

PreviousLLM ExtractorNextDocument Viewers

Last updated 1 year ago