expectheader
Check if the header contains the expected field names, and raise an error if issues are found.
Introduction
Use the expectheader enrichment to check if the table header contains the field names you expect in the table. If there are any additional or missing field names in the header, or the field names in the header are not in the expected order, the enrichment raises an error.
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 (*).
-
Fieldnames
-
Enter the names of the fields in the order in which you expect to find them in the header.
-
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.