> ## 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 オブジェクト（IAssemblingError インターフェイス）

このオブジェクトはアセンブリ エラーを表します。ドキュメントアセンブリのルールは Document Definition の作成時に設定するもので、繰り返し出現するドキュメント セクションの順序と数を定義します。また、キーフィールドの値に基づくアセンブリ検証を必須にすることもできます。この場合、キーフィールドの値はドキュメントのすべてのページで同一である必要があります。

文書構成エラーは、次の原因で発生することがあります。

* **ドキュメント内のページ順序が正しくない**

ページが不足または過剰である場合や、文書ページが正しい順序で並んでいない場合があります。ヒントを取得するには、**Text** プロパティを使用します。このようなエラーは、[**Documents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents.md) オブジェクトの [**MoveById**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-movebyid.md)、[**Merge**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-merge.md)、[**Disassemble**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-disassemble.md) メソッドを使用して修正できます。

* **キーと値がドキュメントのすべてのページで同一ではない**

Document Definition でページを正しく組み立てるためにキーフィールドの検証が必要とされている場合、キーフィールドの値は各ページの [**IPage::KeyValue**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/page.md#keyvalue) プロパティに格納されます。キーフィールドの認識や入力が誤っていると、キーフィールドが一致しないことがあります。キーフィールドの値を確認してください。それでもキーフィールドの値が一致しない場合は、それらのページが同じドキュメントに属していない可能性があります。ページ順序が誤っている場合は、キーフィールドが同一のページを探し、前述の方法でドキュメントに組み立ててください。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| **Documents** | [**IntsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md)、読み取り専用 | **Type** プロパティが AET\_ErrorInChildDocument の場合、アセンブリ エラーを含む子ドキュメントのリストを返します。それ以外の場合は NULL を返します。 |
| **MissingPageDefinitionId** | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | ドキュメント内にページが見つからなかった Document Definition の識別子を指定します。 |
| **PageIndex** | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 欠落したページまたは余分なページのインデックスを返します。 |
| **Text** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | エラーの説明を格納します。 |
| **Type** | [**AssemblingErrorTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/assemblingerrortypeenum.md)、読み取り専用 | アセンブリ エラーの種類を指定します。 |

## 関連オブジェクト

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

## 出力パラメーター

このオブジェクトは、[**AssemblingErrors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/assemblingerrors.md) オブジェクトの [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) メソッドの出力パラメーターです。

## 関連項目

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

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
