Archiving Flat Filles

Home Page Forums BizTalk 2004 – BizTalk 2010 Archiving Flat Filles

Viewing 2 reply threads
  • Author
    Posts
    • #16849

      Here is my Scenario:

      I have a receive port which accepts a flat file and convert into an XML file Using a Flat File Schema and apply a MAP to transform it to another message. I am getting the Flatfile in a network file location and i want to archive the file as it is received( as text file).

      Can anyone tell me how can I do that..? 

      I tried creating a send port and apply a filter to receive the message from the receive port. but what I am getting is the XML message after the transformation.

      Any help is greatly appreciated.

       

       

    • #16851

      The usual way of doing this is a custom pipeline component, before the Flat File disassembler in the receive pipeline:

      http://codebetter.com/blogs/jeff.lynch/archive/2006/04/08/142537.aspx

       

       

    • #16853

      Hello Shan,

      Here's another way with pure BizTalk – no .NET coding required.

      My assumptions:

      A FlatFileSchema is defined to process the input flat files. This schema is used to define the receive pipeline flat file diassembler  (Document Schema). And, there is one send shape in your orchestration(s) where you output the XML equivalent of the flat file.

      Solution:

      1. Another Send shape needs to be added (to produce the same flat file data) which specifies a Send Pipeline. The Send Pipeline should have the same schema (as above) as the assembler (Document Schema). You may need to have the output filenames specifed as %SourceFileName%.

      Good Luck !

      NNdM 

       

       

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