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

# AssemblingError Object (IAssemblingError Interface)

This object corresponds to an assembly error. The document assembly rule is configured when creating a Document Definition: it defines the sequence and number of recurring document sections. Assembly verification based on the values of key fields can also be required: in this case the values of key fields must be identical on all pages of the document.

Assembly errors can be caused by the following reasons:

* **Incorrect page sequence in a document**

There may be too few or too many pages, or document pages are not arranged in the correct sequence. To receive a tip, use the **Text** property. To correct such error you can use the [**MoveById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-movebyid.md), [**Merge**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-merge.md), and [**Disassemble**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-disassemble.md) methods of the [**Documents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents.md) object.

* **Key values are not identical on all pages of the document**

If the Document Definition requires verification of key fields for correct assembly of pages, the values of key fields will be placed in the [**IPage::KeyValue**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md#keyvalue) property of each page. Key fields may not match if they have been recognized or filled in incorrectly. Check the values of key fields. If the values of key fields still do not match, it is likely that such pages do not belong to the same document. If the page sequence is wrong, find pages with identical key fields and assemble them into documents as described above.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **Documents** | [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md), read-only | Returns a list of child documents which contain assembling errors, if the **Type** property is AET\_ErrorInChildDocument. Otherwise returns NULL. |
| **MissingPageDefinitionId** | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Specifies the identifier of the Document Definition for which the page was not found in the document. |
| **PageIndex** | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Returns the index of the missed or excess page. |
| **Text** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the error description. |
| **Type** | [**AssemblingErrorTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/assemblingerrortypeenum.md), read-only | Specifies the type of assembly error. |

## Related objects

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/AssemblingError.gif?s=b1bba5235c6ced3c7bc3c4cfd9288866)

## Output parameter

This object is the output parameter of the [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) method of the [**AssemblingErrors**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/assemblingerrors.md) object.

## See also

[**AssemblingErrors**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/assemblingerrors.md)

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
