Defining the file format

When you load a file, the column format is automatically detected with the default parameters for each data type. You can modify these default parameters in order to specify the particular processes to apply to your data, particularly when there is an error or an empty value.

To do this, select Click here to change the file format… in the main window of the Data loading (file) activity. The format detail window will then open.

You can then modify the general formatting of the file as well as the formatting for each column.

The general file formatting allows you to define the way in which the columns will be recognized (file encoding, separators used, etc.).

The column formatting allows you to define the value processing of each column:

NOTE
You can add as many columns as desired. The maximum length of values in each column is determined by the chose data type.
  • Ignore column: does not process this column during data loading.

  • Data type: specifies the type of data expected for each column.

  • Allow NULLs: specifies how to manage empty values.

    • Adobe Campaign default: generates an error for the numerical fields only, otherwise inserts a NULL value.
    • Empty value allowed: authorizes empty values. The value NULL is therefore inserted.
    • Always populated: generates an error if a value is empty.
  • Length: specifies the maximum number of characters for the string data type.

  • Format: defines the time and date format.

  • Data transformation: defines whether a character case process needs to be applied on a string.

    • None: the imported string is not modified.
    • First letter in upper case: the first letter of each word of the string starts with an upper case.
    • Upper case: all characters in the string are in upper case.
    • Lower case: all characters in the string are in lower case.
  • White space management: specifies whether certain spaces need to be ignored in a string. The Ignore spaces value only allows spaces at the beginning and at the end of a string to be ignored.

  • Error processings: defines the behavior if an error is encountered.

    • Ignore the value: the value is ignored. A warning is generated in the workflow execution log.
    • Reject line: the entire line is not processed.
    • Use a default value in case of error: replaces the value causing the error with a default value, defined in the Default value field.
    • Reject the line when there is no remapping value: the whole line is not processed unless a mapping had been defined for the erroneous value (see the Mapping option below).
    • Use a default value in case the value is not remapped: replaces the value causing the error with a default value, defined in the Default value field, unless a mapping had been defined for the erroneous value (see the Mapping option below).
  • Default value: specifies the default value according to the error processing chosen.

  • Mapping: this field is only available in the column detail configuration (accessed via a double-click or via the options on the right of the column list). This transforms certain values when they are imported. For example, you can transform “three” into “3”.