CSV Format

The comma-separated values (CSV) file format is available for inbound and outbound data exchanges. Using CSV requires creating a data map between STEP and the data being processed, and may also include data transformations.

The following sample CSV data import file shows that the first row is a header, and the remaining data is delimited by a comma. Exported CSV files always include a header row, though this is optional for imports.

Keep the following points in mind when working with STEP data using CSV format:

Format Availability

CSV is available for selection in:

Mapping

This format requires creating a data map between STEP and the data being processed, and may also include data transformations. For details, see Data Mapping here.

Inbound Data

CSV import allows creation of and updates to products, classifications, entities, attributes, and references. However, system setup objects (for example: LOVs, users, reference types, and so on), cannot be created or modified via import.

Because the Map Data process allows selection of only a single node type, only one node type / super type (products, entities, etc.) can be imported at a time. When multiple super types exist in the same import file, a separate import is required to successfully import each type of object, starting with classification data, then product data, and finally, entity data. When the inbound file includes data for node types other than the one selected, two things may happen: 1) assuming none of the data prevents the import, new objects are created using the supplied information and the selected super type, 2) the execution report details the skipped records when included data, like parent ID, is not found in the selected super type hierarchy. Alternately, split the inbound data file by super type and process accordingly.

For information on parallel imports involving multiple references on object types, see Reference Target Lock Policy on Object Types here.

Deleting Values During Import

When importing comma and tab delimited files, the values are imported exactly as provided in the file per the mapped data. This means that when a blank value is imported, an attribute that previously had a value is overwritten as blank. If the value being deleted was inherited, the result is not a blank field, but the inherited value is restored.

This functionality is the same as when importing STEPXML files, but differs from imports of Excel.

Inbound Parameters

The following parameters are available in both Import Manager and IIEP.

  1. Delimiter - determines the character used to delimit the exported data. Options are semi-colon (;), comma (,), the tab character, the pipe symbol (|), or colon (:).
  1. Character Set - determines the characters that can be successfully imported. Options include Windows-1252, ISO-8859-1 (also known as the Latin-1 character set), UTF-8, or UTF-16.
  1. Has Header - indicates if the file has a header row.
  1. Trim whitespace - determines how blank spaces before or after the value are handled.
  1. Allow Multi Line Values - determines how new lines (return codes) are handled in the file, indicated by data with double quoted values that split over several lines. Typically, the newline character is interpreted as the end of data, delimiting a data record. However, sometimes data spans more than one line–that is, includes newline characters. In such cases, values must be quoted with the double quote character (") to be imported correctly.
  1. Conversion Preview - displays a sample of the first few lines of the file to allow verification that the selected options are correct.

Import Manager

IIEP

Outbound Data

When data leaves STEP via CSV format, several options are available to customize the output.

Note: When using the JDBC delivery method users must select 'CSV' as the format. For more information on how to configure the CSV format for the JDBC delivery method, see the Exporting Data via JDBC with CSV Format topic in this guide here.

Outbound Parameters

The following parameters are available in both Export Manager and OIEP.

  1. Delimiter - determines the character used to delimit the exported data. Options are semi-colon (;), comma (,), the tab character, the pipe symbol (|), or colon (:).
  1. Character Set - determines the characters that can be exported. Options include Windows-1252, ISO-8859-1 (also known as the Latin-1 character set), UTF-8, or UTF-16.
  1. Newline Handling - determines how new lines (return codes) are handled when they occur in the data being exported.
  1. Value formatting - determines how values are displayed in the exported file.
  1. Empty fields - determines how fields without values are exported.

Important: If exporting attribute groups, empty attributes will not be exported. The specific attributes to be exported need to be mapped manually.

Export Manager

OIEP