locked
BizTalk 2013 - Microsoft.BizTalk.Edi.Shared.EdiException: Error: 1 (Segment level error) RRS feed

  • Question

  • Hi,

    We recently converted an EDI->X12 project from BizTalk 2009 to 2013 and we started receiving this error

    Error: 1 (Segment level error)
        SegmentID: K1
        Position in TS: 7
        2: Unexpected segment

    The project has a custom SendPipeline component that we use to extract some data from the K1 segment and then move it into another segment.  We then delete the K1 segment on the output.

    The K1 segment is a customized segment that we have added into the schema.

    The error occurs in the Execute function when trying to read the stream

    new StreamReader(bodyPart.GetOriginalDataStream()).ReadToEnd(). 

    If i change the send pipeline to XMLTransmit and bypass the custom component it works fine.

    Regards,

    Neil

    Monday, October 13, 2014 2:37 AM

Answers

All replies