In fixed-length text files, each field starts and ends at the same place in every record. Otherwise, they are the same as CSV. Below is a list of properties for the Fixed Length Text format:
- Fields - a comma-separated list of values, each representing the size of the fields. For example:
5,20,10,7are 4 fields with the sizes
- Quote - a character used to enclose string literals. If a field value contains a delimiter (for example,
John,Doe) it makes sense to enclose it in quotes so that Integrator can parse it: "John,Doe".
- Line Separator - a character used as a separator between lines.
- Default Extension - the default extension is used when the file name doesn't have an extension. If not entered,
datis the default extension.
- Template - this is a template in the fixed length text format. If this field is not empty, Integrator will use it to populate column names and data types. Template is an optional field. For example:
first-name last-name dob.
- Use First Row for Data - if checked it is assumed that the file doesn't have a "fields" header.
- Column names compatible with SQL - convert column names to SQL-compatible column names by removing all characters, except alphanumeric and spaces.
- Skip First Row - if this option is enabled, the system skips the first row in a file. Typically, it is used together with Use First Row for Data.
- Skip not Properly Formatted Rows - if this option is enabled, the system skips rows which do not conform to the CSV format. For example, if a row has a different number of columns.
- Skip Empty Rows - sometimes, CSV files contain completely empty rows with no values or delimiters. Integrator can be configured to skip those rows; otherwise it will generate an exception when reading that file.
- Document has extra data columns - if this option is enabled, Integrator will be able to read CSV documents, even if the number of header columns is less than the number of data columns.
- Start row - if this value is not empty, the system will start reading the file from the specified 1-based row and will ignore previous rows.
- End row - if this value is not empty, the system will stop reading the file after the specified 1-based row.
- Transformation type - the default is
header. Read more about using a preprocessor to modify the contents of the source document. If
headeris selected and Filter or Preprocessor or Header is not empty, the header will be added at the beginning of the file, followed by an end-of-line character, followed by the actual data.
headeris selected for Transformation type, the specified header will be added at the beginning of the file, followed by an end-of-line character, followed by the actual data.
- Date and Time Format - a format for timestamps (date+time).
- Date Format - a format for date (date only, no time).
- Time Format - a format for time (time only, no date).
- Parse Dates - if this option is enabled, and date or time value is not recognized as one of the formats defined above, Integrator will try to parse it using one of the well know date+time formats.
- Trim Strings - if this option is enabled, Integrator will trim the leading and trailing white-spaces from the value.
- Treat 'null' as null - if this option is enabled, Integrator will treat string values equal to 'null' as actual nulls (no value).
- Encode CLOB fields using Base64 - if this option is enabled (default), Integrator will encode fields with the CLOB data type using Base64 algorithm.
- Encoding - character encoding when reading and writing CSV file.
No encodingmeans there will be no additional encoding.