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.

Parse-type Snap
Does not support Ultra Tasks
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:
Learn more about Error handling in Pipelines. |
|
Snap settings
- 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.
| 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 Parser |
| Version | Dropdown list/Expression | Required. The EDIFACT version of the input data.
Available options are:
Default value:
Example:
|
| 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:
|
| 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:
Default status: Deselected |
| Character encoding | Dropdown list | Required. Select the character encoding scheme of the
input content. Available options are:
Default value:
Example:
|
| Snap execution | Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Validate & Execute Example: Execute only |
EDIFACT message type
Available EDIFACT message types for each version are:
| Version | Type |
|---|---|
| D00A |
|
| D00B |
|
| D10A |
|
| D10B |
|
| D11B |
|
| D18A |
|
| D95B |
|
| D96B |
|
| D98B |
|
| D99B |
|