Open topic with navigation

# Write Documents to Disk in CSV Format

The `CsvWriter` task writes document metadata and content to a comma-separated values (CSV) file. This allows you to export the data to other systems.

The task always writes the document reference (`DREREFERENCE`) and content (`DRECONTENT`) fields, and you can choose the other fields that you want to include. The task writes the field names, followed by one line of values for each document that is ingested.

The `CsvWriter` task can be configured as a Pre, Post, Update or Delete task.

To run the task with default settings, specify the file name for the output file:

    [ImportTasks]
    Post0=CsvWriter:MyTask.csv

Alternatively, specify the name of a section in the configuration file that contains the settings for the task:

    [ImportTasks]
    Post0=CsvWriter:CsvWriting

    [CsvWriting]
    CsvWriterFilename=MyTask.csv
    CsvWriterMaxSizeKBs=1000
    CsvWriterArchiveDirectory=./CSVarchive
    CsvWriterFieldNames0=A_FIELD
    CsvWriterFieldNames1=A_FIELD/subfield
    CsvWriterFieldNames2=A_FIELD/@attribute

For information about the parameters that you can use to configure this task, refer to the Connector Framework Server Reference.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm