# Reject Invalid Documents

You can configure CFS to reject documents based on several criteria.

When documents are rejected, they are not processed by further tasks. You can index rejected documents or discard them:

- To index the documents into one or more indexes, such as an IDOL Error Server, set the parameters `OnErrorIndexerSections` and `IndexDatabase`. `OnErrorIndexerSections` specifies a list of configuration file sections to use to index a document. These sections must contain indexing parameters, such as the host name and ACI port of your IDOL Server. `IndexDatabase` specifies the name of the IDOL database into which the rejected documents are indexed. Before indexing a document, CFS writes the name of the filter that caused the document to be rejected to a field named `MATCHEDFILEFILTERS`.
- If you do not specify any indexing details, the documents are discarded. CFS writes a message to the import log showing that the document was rejected, and showing which filter caused the rejection.

_FT_HTML5_bannerTitle.htm