Custom pipeline component to process flat file – strip first line off – promote property…

Home Page Forums BizTalk 2004 – BizTalk 2010 Custom pipeline component to process flat file – strip first line off – promote property…

Viewing 1 reply thread
  • Author
    Posts
    • #18671

      I’m looking into creating a custom pipeline component to process an
      inbound delimited text file, were the first line of the file contains
      the name of the file.  The reason this is necessary (apparently) is
      that the source filename is lost when sent over AS2.  I can get what
      the file is suppose to be named on our side by looking at the first
      line of the text message… BUT I then would like to strip off that
      line, and process as we normally would.

      Just wondering if anyone
      has done such a thing, and what advice could be passed on here.  I do
      have the BizTalk 2006 Recipes book, and there is something close to
      what I’m talking about in chapter 3, starting with page 177.  However,
      this “recipe” does not alter the original message in any way… it just
      promotes a property.  Good start for me… but I need to process the
      file just a little.

      Thanks!

    • #18676

      If you want to strip of the first line completely then use a custom pipeline component and read the stream as string.

      Strip off the first line and pass the msg as output.

      • #18686

        NISHIL:

         Thanks for the reply, but as noted in my original posting… I know I need to strip off the first line of the file – and I know that using a custom pipeline component would most likely be the best approach (thus the subject title of this thread)… the question is – how?  I also noted that I have the BizTalk 2006 Recipes book, and the example there is close… and has gotten me started in the right direction… I’m just not completely sure on how to pull off just one line (the first in my case), parse that text, promote a property and then pass on (unprocessed) the remaining lines.

         

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.