Debatch messages from a flat file

Home Page Forums BizTalk 2004 – BizTalk 2010 Debatch messages from a flat file

Viewing 1 reply thread
  • Author
    Posts
    • #16896

      Hello folks,

       

      I hope that someone can point me in the right direction.  My scenario is that I need to debatch messages from a flat file.  For each flat file:

      There is a header that contains a field that indicates the type of messages contained in the file.

      There is a header that contains a field that indicates the type of messages contained in the file.

      • There are 5 types of messages that I might be receiving.
      • All messages within the same file must be of the same type as indicated in the header.
      • There is a trailer section that marks the end of the file

       

      I have used the flat file disassembler in a receive pipeline where I used one schema for header, one for trailer, and one for one message type.  This works fine but now I need to make this work for all message types.  

       

      Is there a way that I can use the Message Type information contained in the header to select what schema will be used?

      Thanx in advance,

      ESJA

    • #16903

      Sounds like you'll need to create your own custom disassembler component that wraps the Flat File Disassembler and implements IProbeMessage to check the message type so that you can pass the right set of schemas to the underlying FFDasmComp. Here are a few examples of wrapping the flat file disassembler.

      You might also want to check out this thread for some other ideas and options.

       

      • #16905

        Thank you Tomas,

         

        It looks like I will have to write my own flat file disassembler.

         

        Regards,

        ESJA

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