On Wed, 25 Jul 2007 14:39:40 -0000, BizEd <EdMathias18@[EMAIL PROTECTED]
>
wrote:
>I've got a supplier who is sending 2 additional crlfs on the end of
>the flat file. It causes my formerly-working-perfectly adapter to
>error out with "unexpected end of stream while looking for positional
>data". Here's an example
>
>xxxxxxxxxxxxx positional data xxxxxxxxxxx<crlf>
>xxxxxxxxxxxxx positional data xxxxxxxxxxx<crlf>
><crlf>
><crlf>
><EOF>
>
>I'm using a positional flat file schema in a receive pipeline.
>
>Anyone know how I can get the flat file adapter to ignore those last
>two crlfs?
First of all, it isn't the adapter that need to ignore anything. It is
the flat file disassembler inside the receive pipeline.
>I have tried specifying (at the schema level) a postfix child
>delimiter of hex 0x0d 0x0a 0x0d 0x0a, hoping that it will catch the
>two crlfs at the end and succesfully terminate the processing. It
>still gives me the same error. Has anybody ran across this?
Anyway, I'd go with this option, and am a bit surprised it doesn't
work. Perhaps add a couple of empty records at the end instead?
--
eliasen, representing himself and not the company he works for.
Private blog: http://blog.eliasen.dk
Private email: jan@[EMAIL PROTECTED]


|