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

# IAssemblingErrors

> Add custom, redundant-page, or omitted-section errors to the IAssemblingErrors collection, modifiable only in the FlexiCapture document assembly script.

## What it does

A collection of [IAssemblingError](/flexi-capture/appendix/scripts/iassemblingerror) objects.

Can be modified in the [document assembly](/flexi-capture/appendix/scripts/script-assembly) script only.

## Methods

| **Definition**                                                                        | **Description**                             |
| ------------------------------------------------------------------------------------- | ------------------------------------------- |
| AddCustomError( description : string, \[optional] weight : int )                      | Adds a custom assembling error.             |
| AddRedundantPageError( int position, \[optional] description )                        | Adds an error concerning an extra page.     |
| AddSectionOmittedError( int position, sectionName : string, \[optional] description ) | Adds an error concerning a missing section. |

<Warning>
  The **AddCustomError** method should be used with caution and only if there are no other suitable methods. As document assembly is fully determined by the number of errors, the error weight must be set correctly when adding such errors. And setting the weight correctly can cause difficulties.
</Warning>

It is recommended not to combine several standard errors in one CustomError that will produce one common error message.
