Monish Nagisetty's Space

Building connectivity on-premise, in the cloud and beyond

Using BizTalk 2006 R2 EDI Schemas in BizTalk 2006 R1

An element definition from the 810 EDI [version 4010] schema in BizTalk 2006 R1:

      <xs:attribute name=DTM02 type=date use=optional>

        <xs:annotation>

          <xs:appinfo>

            <b:fieldInfo edi_datatype=DT format=YYYYMMDD>

            </b:fieldInfo>

          </xs:appinfo>

        </xs:annotation>

      </xs:attribute>

An element definition from the 810 EDI [version 4010] schema in BizTalk 2006 R2:

        <xs:element minOccurs=0 name=DTM02>

          <xs:annotation>

            <xs:appinfo>

              <b:fieldInfo notes=Date_373 />

            </xs:appinfo>

          </xs:annotation>

          <xs:simpleType>

            <xs:restriction base=X12_DT>

              <xs:minLength value=8 />

              <xs:maxLength value=8 />

            </xs:restriction>

          </xs:simpleType>

        </xs:element>

..

..

..

  <xs:simpleType name=X12_DT>

    <xs:restriction base=xs:string />

  </xs:simpleType>

When using the BTS 06 R2 schemas within BTS 06 R1, I get the following error for every element definition:

[<Snipped>]\X12_4060_820.xsd: error BEC2004: Segment DTM: element DTM02 should be defined as XSD attribute, not as XSD element. 

Unfortunately BizTalk 2006 R1 does not provide me all the schemas I need (specifically the 997 and 820).  So I thought, why not just use the schemas from the upcoming BizTalk 2006 R2 Beta Release? Well it turns out that all the elements in the R2 schemas are defined as shown above.  As a result, I get 2435 errors when compiling the R2 schema.

If you are using any of the schemas that are not out-of-the-box in BTS 06 R1, you have to follow certain schema definition rules when using custom schemas.  The preface to these requirements can be found here:  http://msdn2.microsoft.com/en-us/library/aa559550.aspx

The above link will point you to a KB Fix article for BizTalk 2004 but just know that it also applies to the Base EDI Adapter in BizTalk 2006 R1.

So it looks like the R2 schemas have not proven to be helpful.  I will rely on the HIPAA 820 schema for now because it only returns 10 errors when compiling.

Advertisements

March 27, 2007 Posted by | BizTalk, EDI | , | Leave a comment