Parse External Data in a Table
Security:
- Prism: Tables Createdomain in the Prism Analytics functional area when creating a table.
- Any of these security requirements when editing a table:
- Prism Datasets: Owner Managedomain in the Prism Analytics functional area.
- Prism Datasets: Managedomain in the Prism Analytics functional area.
- Table Editorpermission on the table.
- Table Ownerpermission on the table.
- Can Insert Table Datapermission on the table.
When you load a delimited file into a table, you must define how Workday parses the data. You
define the parsing options on the
Edit Parsing Options
step
when you load data into a table, such as creating a table by uploading a file, or
when adding more rows to an existing table.Workday supports delimited files that are RFC 4180-compliant. For more information,
see RFC 4180.
- Access theEdit Parsing Optionsstep for loading data into a table.
- Configure the parsing options.As you complete this task, consider:
Option Description Row DelimiterSpecifies the single character that separates rows (or records) in your source data files.In most delimited files, rows are separated by a new line, such as the line feed character, carriage return character, or carriage return plus line feed. Line feed is the standard new line representation on UNIX-like operating systems. Other operating systems (such as Windows) might use carriage return individually, or carriage return plus line feed. SelectingAny New Linecauses Workday to recognize any of these representations of a new line as the row delimiter.Field DelimiterSpecifies the single character that separates the fields (or columns) of a row in your source data files. Comma is the most common field delimiter.Field NamesSpecifies the default name of each field. You can change the field names after you finish defining the parsing options.Field names must conform to the name validation rules.Workday automatically treats the first line in each source file as a header row instead of as a row of data. If you don't want to use the first line as names for your fields, clearUse values from first row.Escape CharacterSpecifies the single character used to escape theQuote Characteror another instance of theEscape Characterwhen aQuote Characteris specified. Workday reads an escape character as data only if it's escaped with another escape character.If your data values contain quote characters as data, those characters must be escaped and the entire field value must be enclosed with theQuote Character. If not, then Workday assumes that the quote character denotes a new field.Quote CharacterThe character that encloses a single field value, if any.Some delimited files use the quote character to enclose individual data values. The quote character is typically the double quote character (").If a field value contains a field delimiter as data, then the field value must be enclosed in theQuote Character, otherwise Workday assumes that the field delimiter denotes a new field.If a field value contains the quote character as data, then the field value must be enclosed in theQuote Characterand it must be escaped, either by theEscape Characteror another quote character.If a field value contains a row delimiter (such as a new line character) as data, then the field value must be enclosed in theQuote Character.Suppose that you have a row with these 3 data values:weekly special wine, beer, and soda "2 for 1" or 9.99 eachIf the field delimiter is a comma, the quote character is a double quote, and the escape character is a double quote, then a correctly formatted row in the source data looks like:"weekly special", "wine, beer, and soda", """2 for 1"" or 9.99 each"Comment CharacterSpecifies the character that represents a comment at the beginning of a line of text. Workday ignores every line in the external file that starts with the comment character. Example: Select # as the Comment Character to ignore lines that start with #.When the Comment Character is empty, Workday reads all lines as rows of data.Rows to ignoreSpecifies the number of lines at the beginning of the file to ignore when reading the source file. To use this with theUse values from first rowoption, ensure that the line containing the field names is visible and is the first remaining line.Jagged RowsSelect these options when the schema of the source file isn't an exact match of the table schema, and you want Workday to ignore any missing or extra fields at the end of the file schema.Field OptionsThese options control how to handle whitespace characters in Text fields.- Trim leading spaces outside quotes. This option removes whitespace characters outside the quotes of Text fields before the quote character.
- Trim trailing spaces outside quotes. This option removes whitespace characters outside the quotes of Text fields after the quote character.
- Trim leading spaces in quotes. This option removes whitespace characters inside the quotes of Text fields at the beginning of the field value.
- Trim trailing spaces in quotes. This option removes whitespace characters inside the quotes of Text fields at the end of the field value.