EDI Parser

to read a EDIFACT binary file from the input view and convert it into a JSON document, that is formatted according to a specific EDIFACT message type and version.

Overview

You can use this Snap to to read a EDIFACT binary file from the input view and convert it into a JSON document, that is formatted according to a specific EDIFACT message type and version.



Snap views

View Description Examples of upstream and downstream Snaps
Input Valid EDIFACT binary data.
Output EDIFACT data structured in a JSON document.
Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:

  • Stop Pipeline Execution Stops the current pipeline execution when an error occurs.
  • Discard Error Data and Continue Ignores the error, discards that record, and continues with the remaining records.
  • Route Error Data to Error View Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap settings

Legend:
  • Expression icon (): Allows using JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
  • SnapGPT (): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
  • Suggestion icon (): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
  • Upload : Uploads files. Learn more.
Learn more about the icons in the Snap settings dialog.
Field / Field set Type Description
Label String

Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: EDI Formatter

Example: EDI Parser
Version Dropdown list/Expression Required. The EDIFACT version of the input data.
Available options are:
  • D00A
  • D00B
  • D10A
  • D10B
  • D11B
  • D18A
  • D95B
  • D96B
  • D98B
  • D99B

Default value: D98B

Example: D00A

EDIFACT Type String/Expression/ Suggestion Required. The EDIFACT message type. The Snap suggests available types based on the selected version.

For available message types by version, see EDIFACT message type.

Default value: N/A

Example: aperak

Validate Checkbox When you select this checkbox, the Snap validates the incoming data against the selected EDIFACT version and type to ensure the output is well-formed and honors the required EDIFACT type structure.

Default status: Deselected

Enable tree structure Checkbox If selected, the parser outputs a single, structured JSON document where child segments are nested within their parent segments.
If deselected, the parser outputs an output array containing a flat list of segments data objects. Each segment object includes the following elements:
  • An info object with the segment data itself.
  • A tag field for the segment name.
  • A parent field referencing to the parent segment name.

Default status: Deselected

Character encoding Dropdown list Required. Select the character encoding scheme of the input content.
Available options are:
  • ISO-8859-1: A single-byte character encoding standard.
  • UTF-8: A variable-length encoding that can represent most characters in the Unicode standard.
  • UTF-16: A 16-bit, variable-length character encoding.

Default value: UTF-8

Example: UTF-16

Snap execution Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Validate & Execute

Example: Execute only

EDIFACT message type

Available EDIFACT message types for each version are:

Version Type
D00A
  • iftmin
  • aperak
D00B
  • invoic
  • codeco
  • iftmbc
  • coprar
  • coarri
  • iftsai
  • aperak
  • ifcsum
  • iftmbf
  • iftmcs
D10A
  • iftsta
  • prodat
  • pricat
  • ordrsp
  • desadv
  • cusdec
  • orders
  • ifcsum
  • invoic
  • iftmin
  • delfor
  • cusres
  • ordchg
  • invrpt
D10B
  • iftsai
D11B
  • cuscar
D18A
  • tpfrep
D95B
  • cuscar
  • invoic
  • coprar
  • coparn
  • baplie
  • aperak
  • ifcsum
  • iftmbf
D96B
  • cuscar
  • iftmbf
D98B
  • iftmbf
D99B
  • iftmin

Examples