> ## 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.

# Batch integrity check

> Verify batch structure with the FlexiCapture batch integrity check script, launched before export or by user command to flag missing documents.

## What it does

Checks the batch structure. For example, you can check whether the batch contains obligatory documents or whether the number of documents specified on the control page coincides with the number of documents actually processed.

## When it is launched

The script is launched prior to export (if the corresponding option is selected in workflow settings) or by an explicit user command.

## Parameters

| **Name**     | **Type**                                                                 | **Access**                                                                                                                             | **Description**                                                                                 |
| ------------ | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| CheckResults | [IBatchCheckResults](/flexi-capture/appendix/scripts/ibatchcheckresults) | Read-only. Internal[\*](/flexi-capture/appendix/scripts/batch-integrity#asterisk) fields of batch documents and pages are unavailable. | The object that provides access to the batch being checked. Also used to set the check results. |

<a id="asterisk" />\* - The internal field requires loading the object into memory.

<Note>
  In this script, the following methods are unavailable: HasField, Field, SaveAs, ExcludedFromDocumentImage, Page.Rect, Document.Children (to address document fields, the IndexedItemValue must be used).
</Note>
