> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data set validation scripts

> Data set validation scripts check every record in an ABBYY FlexiCapture data set, using IDataSetRecord and IRecordCheckResult to report check results.

## What it does

This script checks and validates records in a data set. It is run individually for every record that needs to be checked. To enable checks that use scripts, enable the Check records using scripts in the properties dialog box of a data set and click **Edit...** to create a validation script.

## Parameters

| **Name** | **Type**                                                                 | **Access** | **Description**                        |
| -------- | ------------------------------------------------------------------------ | ---------- | -------------------------------------- |
| Record   | [IDataSetRecord](/flexi-capture/appendix/scripts/idatasetrecord)         | Read-only  | Represents a record from the data set. |
| Result   | [IRecordCheckResult](/flexi-capture/appendix/scripts/irecordcheckresult) | Read/write | Represents the check result.           |

Script validation occurs when:

* A data set is updated
* A data set is checked manually in its properties dialog box
* When a record is manually added to the data set or an existing record is edited manually in the data set editing dialog box of the Document Definition Editor.
