Pick files based on condition check from same folder RRS feed

  • Question

  • Hi,

    I have a requirement to transfer the file based on file exist condition.






    As soon as source folder receives Empty.txt we should process the all files to destination.

    I tried using correlation.


    With above process, As soon as folder having a.txt It is not waiting for empty.txt file and it is getting routing failure.

    Thanks in advance 



    Tuesday, October 22, 2019 11:30 AM

All replies

  • Then it sounds like receiving a a.txt file is not one of the Activate = true receive shapes in your Orchestration.

    Will you always receive a.txt before Empty.txt?

    Tuesday, October 22, 2019 7:27 PM
  • Hi Colin,

    Yes, We will always receives (a.txt,b.txt...etc) called data files and finally empty.txt file.

    We should send the files to destination only when we receive empty.txt




    Wednesday, October 23, 2019 6:14 AM
  • First thing, the empty.txt should actually not be empty because biztalk file adapter just deletes 0KB files without further processing.

    TO achive this,

    you can have ur rcv location configured with empty*.* filter.

    This will only trigger your process. Then in Orch you have two options

    1. Using c# helper read the files and send it across as you want.

    2. In orch you can use WMI to change port configuration so that other files are also picked up and sent. and once complete change the port config filter again (I dont like this approach)

    If you know the time window for the files and its fiuxed then you can use advanced scheduling option and only process file within that time as it would be sure that all the files would have come by now.


    Blog: My Blog

    BizTalkApplicationDeploymentTool: BizTalk Application Deployment Tool/

    Thursday, November 14, 2019 2:47 PM