06-27-05 10:51 PM
Hello.
I would guess that your problem is with the Trailer Schema. If you do not
have a delimiter after your trailer, you would not want that to be post
fixed. Infex might work.
Something else that might help is to use a tool like ultra edit. It will
allow you to see the hex values inside your file so you know if you are
getting a CR or a CRLF.
Hope this helps.
Stephen W. Thomas
http://www.biztalkgurus.com
"Brian Cesafsky" wrote:
> I have a flat file that has a header, body, and trailer. The header recor
d
> is a 23 byte positional record with a line feed to end it. The body recor
d
> is a 250 byte positional record with a line feed to end a record (the body
> record is unbounded, but I do NOT set the maxoccurs to be 'unbounded'
> because I need to promote a property). The trailer record is a 51 byte
> positional record with NOTHING that ends the record.
>
> For the header record, I set the structure property to 'delimited', the
> child order property to Postfix, and the child delimiter to 0x0A (line fee
d)
> for the root node, and then create a positional record for the fields
>
> For the body record, I do the same as the header record
>
> For the trailer record, I set the structure property to 'delimited', the
> child order property to Postfix, and the child delimiter to None for the
> root node, and then create a positional record for the fields
>
> I get this error:
> There was a failure executing the receive pipeline: "test.MovisoReceive"
> Source: "Flat file disassembler" Receive Location:
> "E:\Projects\BizTalk\test\IN\*.txt" Reason: Unexpected end of stream while
> looking for:
> Positional data (length is 8)
> The current definition being parsed is MovisoRecord. The stream offset whe
re
> the error occured is 22163. The line number where the error occured is 90.
> The column where the error occured is 51.
>
>
> My guess is that BizTalk thinks I'm still processing 'body' records, but I
> don't know how to tell BTS that it has reached my trailer record.
>
> For testing, I create a receive pipeline and use a flat file disassembler.
> I set the Document, Header (preserve = false), and Trailer schemas to the
> appropriate schemas I created.
>
>
> NOTE: The input (.txt) file is being created on a Unix box I believe, so
> there is only a Line Feed (no carriage returns) after each record
>
> Thanks in advance, Brian
>
>
>
[ Post a follow-up to this message ]
|