When to use this format
In a Key=Value format the keys and values are encoded in key-value tuples separated by '&', with a '=' between the key and the value. Example:
The format is typically used to read and create a payload encoded as
To create a new key=value format go to Connections, select the Formats tab, click the Add Format button and type in key=value in the search field.
The following parameters are available when configuring the format:
- Delimiter - a character used as a delimiter between key-value tuples. The default is amp:
- 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,
txtis the default extension.
- Ignore Byte order mark character (BOM) - uncheck this option if you do not want the parser to ignore the byte order mark character (BOM). The default is ignore.
- Template - a template in the Key=Value format. If this field is not empty Integrator will use it to populate column names and data types. Template is an optional field. Example:
- Column names compatible with SQL - this converts column names to SQL compatible column names by removing all characters except alphanumeric and spaces.
- Skip not Properly Formatted Rows - if this option is enabled, the system skips rows which do not conform to the key=value format specification.
- Skip Empty Rows - sometimes files contain completely empty rows with no values and delimiters. Integrator can be configured to skip these rows. Otherwise, it will generate an exception when reading such a file.
- 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
preprocessor. Read more about using the preprocessor to modify the contents of the source document.
- All fields are strings - If this option is enabled (it is disabled by default) the system will create all fields with a string data type.
- 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 the 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-known date & time formats.
- Trim Strings - if this option is enabled, Integrator will trim 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.
- Maximum number of rows in file - the maximum number of rows in the file when creating new files. Use it to split a large document while creating it - it is extremely fast and efficient, compared to splitting the existing document.
- Encoding - character encoding when reading and writing a file.
No encodingmeans there will be no additional encoding.