# Export documents

> The **Export files** dialog box enables you to easily export data for training ML models.

The **Export files** dialog box enables you to easily export data for training ML models.

Select the **Export** button ![Export icon](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-export-icon-dm_export-4367a881-29ae74eb.webp) from the management bar.

The dialog box contains three tabs:

* [Export now](https://docs.uipath.com/document-understanding/automation-suite/2023.10/classic-user-guide/document-manager-export-documents#export-now)
* [Logs](https://docs.uipath.com/document-understanding/automation-suite/2023.10/classic-user-guide/document-manager-export-documents#logs)

## Export now

The **Export now** tab allows you to:

* **Download to Excel** - Download the data locally in an Excel format.
* **Download** - Download the data locally.
* **Export to AI Center** - Export the data to AI Center. The exported folders can be found in AI Center under the **export** folder (**Datasets** > **dataset_name** > **export**).

:::note
The **Download to Excel** function cannot be used if **Schema** or **Backwards-compatible export** options are selected.
:::

If no schema is defined, all export options are disabled.

If a schema is defined, it is mandatory to enter a name for your export, otherwise, the **Download** and **Export** buttons are disabled. A valid name can have up to 24 characters and should not contain special characters.

You can export or download a schema even if it includes multivalued fields.

You can choose to export one of the following options:

* **Current search results** - the labeled documents filtered by a predefined keyword/named batch or by a text query. If no filter is applied, all labeled documents in the current view are exported.
* **All labelled** - all documents with at least one labeled field, of any kind; more precisely, the documents from the **labelled** filter.
* **Schema** - a zip file containing the fields and their configurations which can be imported into a different Document Manager session.
* **All** - exports all documents, no matter if labels are applied or not.

The **Backwards-compatible export** checkbox enables you to apply legacy export behavior, which is to export each page as a separate document. Try this if the model trained using default export is below expectations. Leave this unchecked to export the documents in their original multi-page form.

### Export validation

To export a dataset, all fields need to be labeled in at least 10 different pages. Otherwise, the export fails with the following messages:

![Example of an export error](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-an-export-error-116531-b66e07cd-4652516f.webp)

![Example of an export error](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-an-export-error-117443-36f125af-21c929cd.webp)

For Classification fields, there is an additional requirement: each option needs to be labeled in at least one document. Otherwise, the export fails with the following message:

![Example of an export error](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-an-export-error-115359-af777e1e-89875ed0.webp)

When exporting only Evaluation set data, all validations are disabled.

### Dataset format

A **folder** containing the exported dataset coming from Document Manager. This includes:

* `schema.json`: a file containing the fields to be extracted and their types
* `split.csv`: a file containing the split per each document that will be used either for **TRAIN** or **VALIDATE** during the Training Pipeline
* images: a folder containing images of all the labeled pages
* latest: a folder containing `.json` files with the labeled data from each page

  ![Screenshot of the Datasets interface.](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-screenshot-of-the-datasets-interface-115995-9f340e64-4622e064.webp)

## Logs

The **Logs** tab displays the latest log on export.

In case of a successful export, the log shows the number of processed documents and the export duration.

![Example of a log message](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-a-log-message-382240-114c6dd4-ae8ea873.webp)

In case of a successful schema export, the log shows the export duration.

![Example of a log message](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-a-log-message-382244-93f997f3-28df558c.webp)

During the file export, you can check the status of the export. This is particularly useful for large exports.

![Example of a log message](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-a-log-message-382228-08df2df0-3d4ddf69.webp)

Error messages are also displayed in Logs, for instance:

![Example of a log message](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-a-log-message-382232-55e18c81-7ce56947.webp)

In case of a successful auto-retraining, the import logs from the **fine-tune** folder of the dataset are displayed as well:

![Example of a log message](https://dev-assets.cms.uipath.com/assets/images/document-understanding/document-understanding-example-of-a-log-message-382236-00049dc5-af4b5c0e.webp)
