The following table lists the data types used in the schema of the BizTalk EDI X12 file:
X12_n-numeric type (integer)
X12_r-real type (real ). Format: [Sign] integral-digits [. [fractional-digits], Sign (Symbol) can only be "-", not "+"
Note:
Use Shema in vs2005 ide to verify the XML instance. If the content of a node of this type contains numbers "0" or spaces (such as 12.20, 005 ), the following error message appears:
Error 16 segment level: Field error: Segment ID-mea: field position-3: Current Value-12.20: [6] invalid character in Data Element
This XML instance cannot pass Shema verification in any way,
However, in the EDI properties X12 properties-> party as interchage sender-> ack generation and validation settings of the party,
Check the allow leading and trailing zeros and spaces check boxes. This XML can be verified during the parsing run of EDI pipeline.
X12_an- Alphanumeric)
X12_id- Enumeration type
X12_dt-date type (datetime)
X12_tm-time)
X12_nx-specifies the decimal digit type. X> 0. If it is set"N2 "indicates that the value 1234 of the X12 file after pipeline resolution is converted to 12.34
Note:
To enable automatic conversion, you must go to the EDI attribute X12 Properties> party as interchage sender> ack generation and validation settings of the party,
Check the convert implied decimal format NN to base 10 numeric value check box.
-- In fact, the above types are consistent with the standard type definitions in the ansi edi X12 document.