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>



            <b:fieldInfo edi_datatype=DT format=YYYYMMDD>





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

        <xs:element minOccurs=0 name=DTM02>



              <b:fieldInfo notes=Date_373 />




            <xs:restriction base=X12_DT>

              <xs:minLength value=8 />

              <xs:maxLength value=8 />







  <xs:simpleType name=X12_DT>

    <xs:restriction base=xs:string />


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:

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.


March 27, 2007 - Posted by | BizTalk, EDI | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: