File Formats
File format definitions are centrally defined in the environment and are referred to by File Adapter functions for data import and export.
Adding a File Format
-
On the Environment Details screen, choose the File Format tab.
-
Choose Edit in the upper right corner of the Environment section.
-
Choose Add.
-
The Add Details window appears, where you have to define the following:
-
File Format: A unique ID given to the file format entry, such as “CSV”, “TXT”, “CSV_SERVER0”, and so on.
-
Description: Text to describe the file format, for example “CSV from Server 0”.
-
File Name: This is an optional field where you can define a specific file name to be consumed by the File Adapter function. If the entered file name does not exist on the server, nothing is displayed on the Server File tab of the File Adapter function. If you want to choose from a list of files on the Server File tab, leave this field empty.
-
-
Choose OK.
-
Continue by defining the following:
-
Skip First Row: The number entered here is the starting point for the system to read the data. If you leave this empty, the system uses the first data record of the file being consumed as the first row.
-
Record Delimited by: Character that separates data record rows. As an example, you can choose to use next line (\n) if the next set of records is in the next row.
Another example is to use the equal sign (=) if sets of records are divided by the = character.
-
Field Delimited by: Character that separates columns. Usually in a CSV file fields are separated by a comma (,) or semi-colon (;).
-
Whitelist Path: Directory or path on your application server where the file is available.
-
-
You also have the option of defining the following:
-
Optionally Enclosed by: When using this optional field, rows of data can be separated into columns.
-
Time Format: Enter the time format to be used, for example “HH24:MI:SS”.
-
Timestamp Format: Enter the timestamp format to be used, for example “YYYY-MM-DD HH24:MI:SS.FF7”.
-
Date Format: Enter the date formats used in the file, for example “YYYY-MM-DD”.
-
Thousand Separator: Enter the thousand separator used in the amount fields, for example dot (.) or comma (,).
-
Decimal Separator: Enter the decimal separator used in the amount fields, for example dot (.) or comma (,). This must be different from the specified thousand separator.
-
-
Choose Save.
Removing a File Format
Deletes a file format that is no longer relevant to the environment.
-
Select the row to be deleted and choose Remove.
-
A confirm deletion window appears. Here, you can enter a comment if required.
-
Choose Confirm.