none
277U schema errors. URGENT? RRS feed

  • Question

  • i am getting error on send port for 277U like following, i hope i will figure out them. any one know what should be the values for these segments. i tried to put some sample data. but it is failing for following errors.


    Error: 1 (Segment level error)
     SegmentID: HL
     Position in TS: 2
     7: Segment Not In Proper Sequence

    Error: 2 (Field level error)
     SegmentID: BHT
     Position in TS: 1
     Data Element ID: BHT06__TransactionTypeCode
     Position in Segment: 6
     Data Value: TH
     7: Invalid code value

    Error: 3 (Field level error)
     SegmentID: HL
     Position in TS: 2
     Data Element ID: HL03__HierarchicalLevelCode
     Position in Segment: 3
     Data Value: 21
     7: Invalid code value

    Error: 5 (Field level error)
     SegmentID: NM1
     Position in TS: 4
     Data Element ID: NM101__EntityIdentifierCode
     Position in Segment: 1
     Data Value: QC
     7: Invalid code value

    Error: 6 (Field level error)
     SegmentID: NM1
     Position in TS: 4
     Data Element ID: NM108__IdentificationCodeQualifier
     Position in Segment: 8
     Data Value: MI
     7: Invalid code value

    Error: 7 (Field level error)
     SegmentID: HL
     Position in TS: 5
     Data Element ID: HL03__HierarchicalLevelCode
     Position in Segment: 3
     Data Value: 21
     7: Invalid code value

    Error: 8 (Field level error)
     SegmentID: HL
     Position in TS: 7
     Data Element ID: HL03__HierarchicalLevelCode
     Position in Segment: 3
     Data Value: 21
     7: Invalid code value

    Error: 9 (Segment level error)
     SegmentID: STC
     Position in TS: 8
     2: Unexpected segment

    Error: 10 (Field level error)
     SegmentID: STC
     Position in TS: 9
     Data Element ID: STC01_C043U79_TS277A1_2200D
     Position in Segment: 1
     Data Value:
     1: Mandatory data element missing


    Moonis Tahir MCSD.net, MCTS Sharepoint 07 (Dev & Config), MCTS BizTalk 06, MCTS SQL 2005.
    Thursday, April 30, 2009 3:11 PM

Answers

  • Hi,
        It may be the case that one error is the cause of other error. If one segment will not come in proper sequence then segments after that can come in a way that Engine try to validate it throught different segment in schema then different types of error can occur. So try to fix the error which is coming first in all errors.

    Your problem looks like segement is not in proper sequence. Please try the following :


    Thanks
    Gyan

    If this answers your question, please mark it as "Answered".
    • Marked as answer by edhickey Wednesday, May 13, 2009 9:53 PM
    Friday, May 1, 2009 3:03 AM

All replies

  • Moonis,

    These are all EDI errors, and the meanings may vary by situation.  You can not just put in sample data, you must use data that fits the EDI standards specifications. 


    If you are not familiar with EDI structure, you should review the EDI chapter in Pro Mapping for BizTalk Server 2009.



    Jim -- Pro Mapping in BizTalk 2009, Apress Books, March 23, 2009
    Thursday, April 30, 2009 3:25 PM
  • I did not use my own sample values. Client provided a 277u message sample to follow. However i will review the EDI standards to find out what values to put. Thanks
    Moonis Tahir MCSD.net, MCTS Sharepoint 07 (Dev & Config), MCTS BizTalk 06, MCTS SQL 2005.
    • Edited by Moonis Tahir Thursday, April 30, 2009 3:39 PM update
    Thursday, April 30, 2009 3:39 PM
  • You should ask your client for the EDI spec they are following. Just having a sample may not give you all of the information to modify a 277 BizTalk schema. Most EDI partners will publicly document their EDI spec (and X12 version) so you can update a schema for it.

    In your example message, your client's EDI fields may be optional or use other values in their 277 EDI spec than in the generic EDI spec and generic BizTalk 277 schema. You can customize a BizTalk 277 schema to make fields optional or use other expected values.

    Thanks,
    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Thursday, April 30, 2009 3:42 PM
    Moderator
  • Thanks for clarifications, i have now two issues left that i am trying to resolve. any idea on following errors
    --------------------------------Issue 1----------------------------------
    Error: 1 (Segment level error)
     SegmentID: HL
     Position in TS: 2
     7: Segment Not In Proper Sequence

    --------------------------Issue 2--------------------------------if i dont map it, this error goes away. for now i need to figure out issue 1 above. ----------
    Error: 3 (Segment level error)
     SegmentID: STC
     Position in TS: 8
     2: Unexpected segment

    Error: 4 (Field level error)
     SegmentID: STC
     Position in TS: 9
     Data Element ID: STC01_C043U79_TS277A1_2200D
     Position in Segment: 1
     Data Value:
     1: Mandatory data element missing

    i made the schema node to minimum occur 0 to see if this error goes away but it is staying. Any idea how to resolve it? my source schema has category code and status code that i mapped to loop 2200D relevant fields.


    Moonis Tahir MCSD.net, MCTS Sharepoint 07 (Dev & Config), MCTS BizTalk 06, MCTS SQL 2005.
    • Edited by Moonis Tahir Thursday, April 30, 2009 6:54 PM updated
    Thursday, April 30, 2009 6:24 PM
  • Hi,
        It may be the case that one error is the cause of other error. If one segment will not come in proper sequence then segments after that can come in a way that Engine try to validate it throught different segment in schema then different types of error can occur. So try to fix the error which is coming first in all errors.

    Your problem looks like segement is not in proper sequence. Please try the following :


    Thanks
    Gyan

    If this answers your question, please mark it as "Answered".
    • Marked as answer by edhickey Wednesday, May 13, 2009 9:53 PM
    Friday, May 1, 2009 3:03 AM