Assume that you are using Electronic Data Interchange (EDI) in Microsoft BizTalk Server. When you process the EDI message from the Extensible Markup Language (XML) to a flat file in the EDI send pipeline, you may notice that the process fails if the message contains an empty node in a sub-loop. For example, the node is denoted as <ns0:DTM_SubLoop/> instead of <ns0:DTM_SubLoop></ns0:DTM_SubLoop>.
Additionally, you may receive an error message that resembles the following:
Source: BizTalk Server
Date: Date/Time
Event ID: 5743
Task Category: BizTalk Server
Level:
Warning Keywords:
Classic User: N/A
Computer: ComputerName
Description: The adapter failed to transmit message going to send port "SendPort1" with URL "FilePath\FileName". It will be retransmitted after the retry interval specified for this Send Port. Details:"Unable to read the stream produced by the pipeline.
Details: Error: 1 (Segment level error)
SegmentID: AMT
Position in TS: 36 2:
Unexpected segment ".
Event Xml: <Event xmlns="FilePath\FileName">
<System>
<Provider Name="BizTalk Server" />
<EventID Qualifiers="32960">5743</EventID>
<Level>3</Level>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="Date/Time" />
<EventRecordID>1159013</EventRecordID>
<Channel>Application</Channel>
<Computer>ComputerName</Computer>
<Security />
</System>
<EventData>
<Data>SendPort1</Data>
<Data>Data </Data>
<Data>Unable to read the stream produced by the pipeline.
Details: Error: 1 (Segment level error) SegmentID: AMT Position in TS: 36 2: Unexpected segment< /Data> </EventData> </Event>