Skip to main content
Feedback

Inbound EDI document validation and acknowledgment

Updated 

The Trading Partner Start step validates each document in an inbound transmission against the EDI profile for that document type. Validation checks mandatory fields, data types, and minimum and maximum lengths. For X12, EDIFACT, HL7, and ODETTE, it also checks segment validation rules. You can turn off qualifier validation for X12, EDIFACT, HL7, and ODETTE document types.

For X12, EDIFACT, HL7, and ODETTE, the Start step reports validation errors in acknowledgment messages when the trading partner is set up to generate them. RosettaNet always generates acknowledgment messages that report validation errors. Tradacoms does not support acknowledgments.

Start step output paths

The Start step has three output paths:

  • Documents: Receives valid documents. Attach steps here to process valid documents.
  • Errors: Receives invalid documents. Attach steps here to process them. Whether invalid documents reach this path depends on the standard. Refer to the sections below.
  • Acknowledgments: Receives the generated acknowledgment messages. Attach steps here to route them. Set acknowledgment options per document type. In the trading partner component, open the Document Types tab, select the document types you exchange with that partner, and then select the profile and acknowledgment options for each one.

If the trading partner uses AS2, you can select Request MDN to confirm delivery of a message and report errors from that message.

X12 standard

Invalid X12 documents go to the Errors path, with one exception: if qualifier validation is enabled, valid documents with invalid qualifiers go to the Documents path with an acknowledgment status of Accepted with Errors.

The validation result for each document appears in the Is Valid Message? document property, at Document Property > Trading Partner Information > X12 > Transaction Set > Is Valid Message?

Functional acknowledgments

Set Functional Acknowledgment Options to one of the following:

  • Acknowledge Functional Groups: The Start step generates a functional acknowledgment (FA) for each functional group. If any transaction set in a group is invalid, Is Valid Message? is false for every transaction set in that group.
  • Acknowledge Transaction Sets: The Start step generates an FA for each transaction set. If a transaction set is invalid, its Is Valid Message? value is false.

The default FA is the 997. For an individual transaction set, you can use the 999 instead. Most often, you use the 999 for healthcare transaction sets in X12 version 5010 and later. For more information, refer to Generating X12 document validation and functional acknowledgment.

The FA contains these segments:

  • AK2 and AK5: Always present in a 997.
  • AK3 and AK4: May appear in a 997. AK3 reports segment-level errors. AK4 reports data element-level errors.
  • IK3 and IK4: May appear in a 999. IK3 reports segment-level errors. IK4 reports data element-level errors.

an example 997 functional acknowledgment message that includes AK1, AK2, AK3, AK5, and AK9 segments

A segment that fails its profile validation rules produces one segment-level error and one or more data element-level errors. Each data element-level error names the invalid element and the type of error.

The 997 or 999 can report these errors:

  • Functional group trailer missing
  • Group control number in the functional group header and trailer does not match
  • Number of included transaction sets does not match actual count
  • Transaction set trailer missing
  • Transaction set control number in the header and trailer does not match
  • Number of included segments does not match actual count
  • One or more segments in error
  • Missing or invalid transaction set identifier
  • Missing or invalid transaction set control number
  • Unrecognized segment ID
  • Mandatory segment missing
  • Segment has data element errors
  • Data element too short
  • Data element too long
  • Invalid code value
  • Conditional required data element missing (validation rule not satisfied)
  • Exclusion condition violated (validation rule not satisfied)

TA1 interchange acknowledgments

To generate TA1 messages for a transaction set, set Use TA1 Acknowledgment. A TA1 reports interchange-level (ISA/IEA) validation results. To route TA1 messages, use the Transaction Set document property on the Acknowledgments path.

Group and interchange checks

The Start step always validates GS and GE segments when it generates an acknowledgment.

EDIFACT standard

Invalid EDIFACT documents go to the Errors path only if Invalid Inbound Document Routing is set to Errors path for the document type on the Document Types tab. Otherwise, they go to the Documents path.

If CONTRL Acknowledgement Options is set to Acknowledge, the Start step generates CONTRL acknowledgment messages when the process runs.

HL7 standard

For HL7 trading partners, you configure accept acknowledgments and application acknowledgments separately. For each type, choose one of these options:

  • Always generate the acknowledgment.
  • Generate it only for valid transmissions.
  • Generate it only for invalid transmissions. Invalid HL7 documents go to the Errors path only if Invalid Inbound Document Routing is set to Errors path for the document type on the Document Types tab.

The validation result appears in the Is Valid Message? document property, at Document Property > Trading Partner Information > HL7 > Message > Is Valid Message?

ODETTE standard

Invalid ODETTE documents go to the Errors path only if Invalid Inbound Document Routing is set to Errors path for the document type on the Document Types tab. Otherwise, they go to the Documents path.

If CONTRL Acknowledgement Options is set to Acknowledge, the Start step generates acknowledgment messages when the process runs.

RosettaNet standard

The Start step always generates acknowledgment messages for RosettaNet, and those messages report validation errors. The setting on the trading partner doesn't change this. Invalid RosettaNet documents go to the Errors path.

Tradacoms standard

Tradacoms does not include acknowledgments.

On this Page