Multiple messages from 1 input message

Home Page Forums BizTalk 2004 – BizTalk 2010 Multiple messages from 1 input message

Viewing 1 reply thread
  • Author
    Posts
    • #24321

      Hi there

      I should do a simple mapping from one schema to another. The tricky part is, that the amount of records in the output message is limited to 3000 records.
      So, if a file with 4000 records arrives, two files/messages should be created at the end. One with 3000 records and a second one with 1000 records.

      Does anybody has a clue, how this needs to be solved?

      Many thanks in advance.

       

    • #24323

      Hi,

       

         There are a few ways you can solve this issue:

       

      1) Build a custom component (that you can invoke from your receive pipeline’s disassemble stage) to break up your original file into separate XML messages, based on your 3000 records threshold, that can be processed by your map in the orchestration.

       

      2) Use XLANGs and XPATH in your orchestration to construct new messages from your original message (based on the 3000 records threshold) and feed them to your map.

       

      3) Invoke an external C# helper class from your orchestration and pass your original XML message to a class method that will break it into different messages that will be consumed again by your orchestration. You should use the Uniform Sequential Convoy design pattern in your orchestration to implement this solution.

       

          I would recommend the 3rd approach as the solution for better maintenance and design purposes.

       

          Best,

       

          Daniel.

       

      • #24331

        Hi,

        Thank you very much for your response.

        I’ve built a debatching component and took this
        http://www.codeproject.com/KB/biztalk/DebatchingFlatfile.aspx as a
        template and adapted it to my requirements as an XmlDasm.

        There is a sample “Aggregator” in {BizTalkInstallation Folder}\SDK\Samples\Pipelines which helped me building my orchestration to consume the splitted messages.

        Kind regards

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