For our customer we needed a optional fault description at the end of each line. Normaly BizTalk expect each line completely filled with characters. BizTalk expects the file to look like this:
Volgnr. (3 characters) || Datum (8 characters) || relatienummer 7 characters || FaultDescription (49 characters) 001200705061154879Error message: wrong number of description lengthß \r\n
001200705061154879Error message: wrong number ß \r\n
So even the FaultDescription field of the second line only has 27 characters, the remaining 22 need to be filled with spaces. Suppose your file has the end of line directly after the contents of the FaultDescription field ends:001200705061154879Error message: wrong number of description lengthß \r\n
001200705061154879Error message: wrong numberß \r\n
But I received an exception:
There was a failure executing the receive pipeline
Source: "Flat file disassembler"
Reason: Unexpected end of stream while looking for: '\r\n'
David Downing (MSFT) has the solution: you can add the following annotation to the schemaInfo node: allow_early_termination="true" Be sure that you will add these annotation in the xsd where you put the recordinfo: child_delimiter="0x0D 0x0A"
Information from: topxml and Jan Tielens' Blog