...
Field Name | Field Type | Description | |||
---|---|---|---|---|---|
Label* Default Value: CSV Parser | String | Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline. | |||
Quote character Default Value: “ | Character | Specify the character to be used for a quote. As of 4.3.2, this property can be an expression, which is evaluated with the values from the Pipeline parameters. Only a single character is allowed as a quote character. | |||
Delimiter* Default value:
| String/Expression | Specify the string or the character to be used as a delimiter in formatting the delimited data. Any combination of characters may be used, adhering to the following guidelines. The input must be submitted with any control characters escaped. For example,
| |||
Escape character Default value: \ | Character | Specify the escape character that is to be used when parsing rows. Only single characters are supported. As of 4.3.2, this property can be an expression, which is evaluated with the values from the pipeline parameters. Leave this property empty if no escape character is used in the input CSV data. | |||
Skip lines* Default value: 0 | Integer/Expression | Specify the number of lines that are to be skipped in the input data before the Snap starts parsing it. This example explains how to skip lines. Skip lines support works well if the number specified is less than or equal to the number of lines of the first partition. If it is larger than the number of lines of the first partition, only the first partition will be skipped. | |||
Contains header Default value: Selected | Checkbox | Select the checkbox to specify if the input data contains the CSV header or not. | |||
Column names | Use this fieldset to specify the column header names, which is a composite table property. This property is ignored if the second input view is used for the CSV metadata.
| ||||
Header | String | Specify the list of headers that are to be used as a CSV header in case you deselect the Contains header property.
| |||
Validate headers Default value: Deselected | Checkbox | Select the checkbox to specify if the headers from the input data should be validated against the Column names table property or not. If this option is selected, the Snap throws an exception when they do not match exactly. | |||
Header size error policy Default value: Both | Dropdown list | Select an option to define how to handle errors for records that do not match the header columns in the CSV file. This error condition occurs if the input document has fewer or additional columns that do not match with the header columns. The available options are:
| |||
Character set Default value: Auto BOM detect. | Dropdown list | Select an option to specify the character set in which input CSV data is encoded. The available options are:
| |||
Ignore empty data Default value: Selected | Checkbox | Select this checkbox to send the document to error view if the input is empty. If you do not select this checkbox, then it produces an empty output document when the input CSV data is empty (both an empty binary stream and a binary stream with CSV headers only). This feature may be useful if the downstream Snaps should be executed whether the input CSV data is empty or not. | |||
Preserve Surrounding Spaces Default value: Deselected | Checkbox | Select this checkbox to preserve the surrounding spaces for the values that are non-quoted.
For example, if you are using data with a delimiter as follows:
| |||
Snap Execution Default Value: Validate & Execute | Dropdown list | Select one of the three modes in which the Snap executes. Available options are:
|
...