Schema Elements for Inbound EDI
In the inbound EDI use case, the input to the B2B action has the EDI payload element and the output, which is generated after parsing, has the XML form of the EDI document.
The TranslateInput data element represents the input message to the
B2B action, and the TranslateOutput represents the output of the
action. Therefore, at a minimum, TranslateInput needs to contain
the edi-payload element to which you'll assign a value using the
input map action. The TranslateOutput data element then produces
the edi-xml-document element, returning the parsed data in the XML
format along with validation errors, if any.

Description of the illustration edi-translate-inbound.png
The following tables describe each element contained in
TranslateInput and TranslateOutput for the
inbound EDI scenario.
Elements in TranslateInput
| Element | Description |
|---|---|
edi-payload |
You should assign a base64-encoded string value generated from a native EDI X12 payload (starting with the ISA segment and ending with the IEA segment) to this element. Base64 encoding is required because EDI may contain unprintable characters used as delimiters or even binary content such as images. In case the EDI X12 payload contains a batch of transactions, you must use a stage file action along with the B2B action to process the batch. |
tracking-info |
You'll require this element only when you use the B2B action with the stage file action for batch processing. This element contains the tracking information for each EDI transaction that is passed from the stage file action to the B2B action. |
edi-encoding |
The character encoding of the EDI X12 payload (default is UTF-8). |
|
and
|
By default, any syntactical error in the input EDI payload is treated as a validation error in translation. You can alter this behavior in two ways:
These elements offer the second option listed above by providing a fine-grained control over the types of validation errors to ignore. You may need to have this fine-grained control in specific situations where you want to forward the message to a back-end application; for example, despite the B2B layer detecting invalid data. Both these elements are of a string type, and the format of the string allows you to specify one or more validation error types. These elements are semantic opposites of one another. The format is as follows:
It is a comma-separated string, where each token starts with The When a validation error is treated as a real error, the B2B action also generates an
acknowledgment message (EDI X12 997) with a rejected flag.
However, when a validation error is ignored, the 997 is
flagged with the |
validate |
By default, any syntactical error in the input EDI payload is treated as a validation
error in translation. You can alter this behavior in two
ways:
This element offers the first option listed above. Setting this element to
|
functional-ack-required |
If you set this element to |
passthrough-errors |
You'll require this element only when you use the B2B action with the stage file action for batch processing. This element simply transfers certain errors from the stage file action to the B2B action so that a proper functional acknowledgment message can be generated in case of errors. You must not set this element when using the B2B action in standalone mode. |
routing-info |
You'll require this element only when you use the B2B action with the stage file action for batch processing. You must not set this element when using the B2B action in standalone mode. |
input-source-context |
To use this optional element, you can assign any identifier string that the B2B
action simply copies to the |
Elements in TranslateOutput
| Element | Description |
|---|---|
edi-xml-document |
This element is returned with the translated message in the XML form. See Sample TranslateOutput XML for Inbound EDI. |
|
|
These header elements are returned with values parsed from the EDI X12 ISA and GS envelopes. |
edi-xml-document > func-ack-report |
This element is returned only when the document type is a 997 (functional acknowledgment), and carries special content specific to a 997. Here are the child elements:
|
|
|
This element is returned with the hierarchical structure of data segments and
elements inside the EDI message, starting with the
Each segment or loop inside the EDI X12 data becomes a parent XML element and its constituent EDI elements become child XML elements. For example, this may appear inside the The above XML fragment represents the data values parsed from the EDI X12 data that has this line: The XML elements |
|
|
The trailer elements are returned with values parsed from the EDI X12 IEA and GE envelopes. |
functional-ack-present |
This element is returned as This element is returned as The B2B action automatically generates a functional acknowledgment message as
follows:
|
functional-ack |
If |
functional-ack-tracking-info |
This element is returned with a string representing a unique transmission identifier for the generated functional acknowledgment message. The string includes control numbers used for the functional acknowledgment. The value is useful for tracking purposes in case the trading partner is unable to process the 997 document. |
validation-errors-present |
This element is returned as |
|
|
The The |
tracking-info |
This element is returned with a string representing a unique transmission identifier occurring in the input EDI. This string includes control numbers used in the input EDI message (interchange/group/transaction-set control numbers). This value is useful for tracking purposes. |
translation-status |
This element is returned with the values
|
transaction-summary |
This element is returned with the overall counts of transactions parsed with success, warning, or errors across a batch of transactions. |
input-source-context |
This element is returned as a verbatim copy of the |