locked
segment level error - unexpected segment for N1 segment in EDI X12 850 schema RRS feed

  • Question

  • Hi,

    I need like the output like

    N1

    PER

    N1

     

    N1 should  come twice like above and PER should come in between the N1 segments.

     

    I tried the above by mapping first N1 and PER which come under N1Loop1 node in the EDI X12 850 Schema. And tried for second N1 which come under SPILoop1>N1Loop2.

     

    But i am getting error like

    Error: 1 (Segment level error)
        SegmentID: N1
        Position in TS: 4
        2: Unexpected segment

     

    But without the second N1 segment its working fine. But I need the second one also.

     

    I have to complete this part as soon as possible. Please do the needful as soon as possible..

    Thanks in advance,

    Elango

    Wednesday, March 24, 2010 10:52 AM

Answers

  • HI Elango

    The error is due to repeated N1 nodes appearing which can occur only once in the N1Loop. So make sure if you want it to appear second time then loop for N1Loop.

    Thanks

    Nikhil

    • Marked as answer by Elango YK Thursday, March 25, 2010 1:28 AM
    Wednesday, March 24, 2010 5:57 PM