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

# Data export settings

> Define export profiles in ABBYY FlexiCapture for Invoices based on document statuses such as Valid, Exception, and Rejected, and pick fields to export.

In a FlexiCapture for Invoices project, an export profile can be set up for every document status. For more information about statuses, see [The status of documents in ABBYY FlexiCapture for Invoices projects](/flexi-capture/invoice-reader/ir-status). You can, for example, export documents with the **Rejected** status to a separate folder. Each export profile can have its own export settings (such as export to data files or ODBC-compatible databases), export path, and list of fields from which data needs to be exported.

Captured data must be exported after it has been verified. The project already has two export profiles that are provided as examples. One profile is for documents with the **Valid** status, the other is for documents with the **Exception** status. Both profiles export data in CSV format but use different paths: the first exports data to the **Export (Valid)** folder, the second to the **Export (Exception)** folder. For more information about export profiles, see [Export settings](/flexi-capture/templates/export-main).

## Set up export based on document statuses

Export setup in FlexiCapture for Invoices is largely similar to FlexiCapture. For more information, see [Export settings](/flexi-capture/templates/export-main).

<Steps>
  <Step title="Open the Document Definitions dialog box">
    Open the **Project** menu and click **Document Definitions...**.
  </Step>

  <Step title="Edit the Document Definition">
    Click the **Edit...** button in the dialog box that opens.
  </Step>

  <Step title="Open Export Settings">
    Open the **Document Definition** menu and click **Export Settings...**.
  </Step>

  <Step title="Add an export destination">
    In the dialog box that opens, click the **Add...** button to open the **Export Destination Wizard**.
  </Step>

  <Step title="Specify export settings">
    Specify the export settings.
  </Step>

  <Step title="Select the field condition">
    Select the **Field condition** option.
  </Step>

  <Step title="Open the export conditions">
    In the **Export Conditions** dialog box that opens, click the **Select...** button.
  </Step>

  <Step title="Select the Status field">
    Select the **Status** item from the list of fields by double-clicking it.
  </Step>

  <Step title="Set the condition type">
    Select **Belongs to set** from the drop-down list.
  </Step>

  <Step title="Choose the statuses">
    Specify the status (**Valid**, **Exception**, or **Rejected**) that an invoice must have to be exported.
  </Step>

  <Step title="Add the condition">
    Click the **Add** button.
  </Step>

  <Step title="Confirm the condition">
    Click **OK**. The selected status value is displayed in the **Export Destination Wizard**.
  </Step>

  <Step title="Finish the wizard">
    Follow the instructions in the wizard to set up the export profile.
  </Step>
</Steps>

The list of export profiles now contains a new profile that is applied to documents with the status you specified.

## Edit the list of exported fields

By default, data is exported from all fields. However, you can choose not to export data from specific fields, or create a separate list of fields from which data needs to be exported in each export profile. For more information, see [Export settings](/flexi-capture/templates/export-main).
