processing flat files after a trigger file is created

Home Page Forums BizTalk 2004 – BizTalk 2010 processing flat files after a trigger file is created

Viewing 1 reply thread
  • Author
    Posts
    • #20415

       Hello,

      I have to transfer files from a host application which writes several ASCII (non XML) files to a subfolder structure. If all files for one subfolder are written, the host creates a trigger file to signal that the files are now ready for transfer.

       

      Sample:

      folder1\

                  file1.txt

                  file2.txt

                  trigger.txt

      folder2\

                  file1.txt

                  file2.txt

                  file3.txt

                  trigger.txt

       

      The files can he handled as flat file and no disassembling is necessary from my side.

      The trigger file should be removed after processing the last file of the folder.

       

      My question is how to handle this !?!?!?

       

      Thanks in advance

      Hermann

       

    • #20460

       Hello All,

      Maybe my previous question is a stupid question, but I would appreciate if someone gives me a comment about this [:)]

      Thanks
      Hermann

       

       

      • #20464

        I would look at creating a batching orchestration that uses a sequential convoy pattern.  The batching orch can receive the files in a loop.  The loop should contain a listen shape with two receives: one receive for the data files and one receive for the trigger file.  You can differentiate between the files using file masks on the receive location.  Receiving the trigger file should break out of the loop and continue processing.  It would be nice if you could somehow delay BizTalk from consuming the data files until the trigger file arrives.  BizTalk doesn’t work that way though, so you need to use a batching orch.  Otherwise, BizTalk will see the data files as unexpected and will throw an exception.

        • #20465

           Russel, Thanks for your reply.

          I will try it on this way.

          Hermann

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