Configuring Cross-Field Validation
This topic describes how to enable cross field/segment validation on transaction-set data elements in EDI-encoded messages. To do so, you need to make two settings:
Set the cross-field validation flag in an annotation of the EDI schema. For X12 or HIPAA schemas, this is the X12ConditionDesignator_Check flag. For EDIFACT schemas, this is the EdifactDependencyRule_Check flag.
Enable EDI-type validation in the agreement properties.
Prerequisites
You must be logged on as a member of the BizTalk Server Administrators group.
Configuring Cross-Field Validation
Open your schema in BizTalk Editor.
For an X12 or HIPAA schema, find the X12ConditionDesignator_Check flag in an annotation in the appinfo section of the schema. Set it to Yes.
Note
Setting the flag X12ConditionDesignator_Check to Yes cannot be performed from BizTalk Schema Editor. For setting the flag, you will have to open it in a notepad or similar text editor, edit, and then save the schema file (.xsd).
For an EDIFACT schema, find the EdifactDependencyRule_Check flag in the annotation in the appinfo section of the schema. Set it to Yes.
For the applicable segments of the schema, specify the relational conditions (X12 and HIPAA) or dependency rules (EDIFACT) that apply. For more information, see Cross Field-Segment Validation.
Note
A cross-field validation condition or rule is entered for a segment in an EDI schema. If you enter a cross-field validation rule for a data element, rather than a segment, BizTalk Server will generate a warning when schema validation is performed.
In the Validation page (under the Transaction Set Settings section) of the one-way agreement tab of the Agreement Properties dialog box for relevant agreement, make sure that the EDI type Validation property is selected.