Outbound EDI document validation
A Trading Partner step can validate outbound X12, EDIFACT, HL7, ODETTE, and RosettaNet documents before it sends them. You turn validation on in the trading partner component that the step uses. The step has two output paths: the Documents path for documents that pass, and the Errors path for documents or interchanges that fail.
Validation levels by standard
Validation runs at up to two levels: the interchange level and a document level. The document level depends on the standard.
| Standard | Interchange level | Document level | Qualifier validation |
|---|---|---|---|
| X12 | Yes | Transaction set | On by default, per transaction set |
| EDIFACT | Yes | Message | On by default, per message type |
| HL7 | Yes | Transmission | On by default, per transmission type |
| ODETTE | Yes | Message | On by default, per message type |
| RosettaNet | No (no interchange concept) | Message | Not available |
Interchange-level validation
Use interchange-level validation to check the whole interchange.
- In the trading partner component, open the X12 Standard, EDIFACT Standard, HL7 Standard, or ODETTE Standard tab.
- Select Validate Outbound Interchanges.
- Select an Outbound Validation Option:
- Filter Errored Documents: Each document with any error goes to the Errors path.
- Fail Interchange if Any Documents Have Errors: If any document has an error, the entire interchange goes to the Errors path. Interchange-level validation for outbound documents works the same way as for inbound documents. For details, see Inbound EDI document validation and ack.
For RosettaNet, there is no interchange level. Select Validate Outbound Documents in the RosettaNet Standard tab to turn on validation.
Document-level validation
Document-level validation checks each document against the EDI profile you select for that document type. Set it in the Document Types tab of the trading partner component.
- X12: Select Validate Outbound Transaction Sets for each transaction set. Each document with an error goes to the Errors path.
- EDIFACT: Select Validate Outbound Messages for each message type. Each document with an error goes to the Errors path.
- HL7: Select Validate Outbound Transmissions for each transmission type. A document with only qualifier errors goes to the Documents path. A document with any other error goes to the Errors path.
- ODETTE: Select Validate Outbound Messages for each message type. Each document with an error goes to the Errors path.
- RosettaNet: In the Document Types tab, select Validate Outbound Messages for each message type. Each document with an error goes to the Errors path. RosettaNet validation must also be on in the RosettaNet Standard tab (Validate Outbound Documents). For X12, EDIFACT, and ODETTE, document-level validation includes segment validation rules if the EDI profile has rules defined and Segment Validation Rules is selected in the profile.
If you select Validate Outbound Interchanges with Fail Interchange if Any Documents Have Errors, document-level validation does not change the result. If any document has an error, the entire interchange goes to the Errors path, whether or not document-level validation is also selected. This applies to X12, EDIFACT, HL7, and ODETTE.
Qualifier validation
Qualifier validation is on by default for X12, EDIFACT, HL7, and ODETTE document types. To skip it for a document type, clear Validate Qualifiers for that document type. RosettaNet does not support qualifier validation.