text

Load data from a text file.

Introduction

Use the text enrichment to load data from a text file into a data extract.

Creating the enrichment

For more information on creating an enrichment, see Using custom scripts.

Configuring the enrichment

To configure the enrichment, fill in the following fields. Required fields are marked with an asterisk (*).

Encoding*

Select the format in which the text file is encoded. Select one of the following:

  • cp437

  • iso-8859-1

  • iso-8859-15

  • iso-8859-9

  • utf-16

  • utf-16le

  • utf-8

  • utf-8-sig

Errors

Choose how the enrichment handles errors. Select one of the following:

  • Select strict to return the value None if an error is found.

  • Select ignore to ignore errors.

  • Select raise to raise a notification if an error is found.

Subtable

Enter the name for a subtable that you want to contain the enriched data. The enrichment is applied to the whole data extract, then the enriched data is output into the subtable you have named here.

This subtable is a temporary table, which means it only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.