none
Validate Instance Error for EDI Schema RRS feed

  • Question

  • When  I used "Validate Instance"  and the following error:

     

    Error 7 Non Segment level  : [5] X12_00401_850\ The element 'X12_00401_850' in namespace 'http://schemas.microsoft.com/BizTalk/EDI/X12/2006' has invalid child element 'UnrecognizedSegment'. List of possible elements expected: 'ST'.
     D:\EDI Interface Developer Tutorial\SamplePO.txt 

     

    How can I fix the errors ?

     

    Thanks.

    Tuesday, March 11, 2008 8:19 AM

All replies

  • If you are validating an instance with the schema, make sure you have trimmed the ISA/GS/GE/IEA from the instance file.  If you do not, you will get this error.

    Tuesday, March 11, 2008 5:24 PM
  • Wa~ It's magic.

     

    It's work after I have trimmed the ISA/GS from instance file.

     

    But, Why?

     

    Thanks your kind reply
    Wednesday, March 12, 2008 3:46 AM
  • This is because the schema you are validating against only contains the transaction set (everything from ST to SE).  If you want to validate an entire interchange add the BatchSchema (either X12 or Edifact depending on which you are doing) and the schemas for any transaction sets in the interchange and then validate against the BatchSchema.  The BatchSchema can be found under %BizTalkInstallPath%\XSD_Schema_EDI

    Friday, March 14, 2008 10:55 PM