Friday, March 14, 2008

Flat File Disassember Error: Unexpected end of stream while looking for

Situation:
I receive a flat file, going thru a receive pipeline with a Flat File Disassembler Component. And I received the following error:

Error:
There was a failure executing the receive pipeline: "OmnioApplication.Pipelines.ReceiveFlatOmnioFile_IncomingRequest, OmnioApplication, Version=1.2.0.0, Culture=neutral, PublicKeyToken=99f7db139ef9cf70" Source: "Flat file disassembler" Receive Port: "OmnioFlatPort" URI: "D:\TestArea\Omnio\Input\IncomingRequest\*.txt" Reason: Unexpected end of stream while looking for:
Positional data (length is 24)
'\r\n'
The current definition being parsed is RequestRevenue. The stream offset where the error occured is 72. The line number where the error occured is 2. The column where the error occured is 33.

Solution:
While checking the Flat File I saw that the last line was an empty line. This means that after the last record, a carriage return was added.

So I went to the XSD of the flat file in Visual Studio and selected the Root Element
Within the properties I changed Child order to PostFix and it worked.

3 comments:

dghnfgj said...

welcome to the [url=http://www.powerlevelingweb.com]wow power leveling[/url] cheap [url=http://www.wow-powerleveling.org]Wow gold[/url] service site, buy cheap wow gold,[url=http://www.wow-golds.org]wow gold[/url],world of warcraft power leveling buy [url=http://www.wotlkgold.net]wow gold[/url]

Anonymous said...

Great the solution worked for me thanks

Anonymous said...

Worked for me as well!

Thank you sir