Problem with passthrough of an empty file

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Problem with passthrough of an empty file

Viewing 2 reply threads
  • Author
    Posts
    • #18474

      Hello again,

       in our first real project we want to receive all files that are dropped in a certain folder. Our highest priority is not to loose a single file. Before even starting to work with error routing and similar things we receive these files “passthrough” from the “certain” folder and send them “passthrough” into two different folders: One for simply storing the files and another temporary folder from which they are processed to the actual orchestration and tests. Everything works fine, no matter what files we throw at the project – except for one case:

      When we insert an empty file it just vanishes. No suspended messages, no record in the corresponding SQL database table, no file anywhere. This is not acceptable, because we need “proof” if something like that happens. Does anyone have an idea what to do ?

      Regards, Michael

    • #19696

       

      Hi Michael

      DId you ever find a solution to this problem.I have the same problem.

       

      • #19703

        You will need to create a custom file adapter.

        Have the receive adapter create an xml message of <empty/> if the file is empty and set the BTS.MessageType to “empty”
        Declare a schema with one node called empty and no namespace (just to match the BTS.MessageType)
        Have the send adapter check the BTS.MessageType, if it is “empty” then create an empty file using the FILE.ReceivedFileName attribute.

         

    • #19822

       Some of the 3rd party adapters(TopXML) will create a warning event in the event viewer for these types of situations.  I have noticed the same behaviour that you are seeing with the microsoft adapters.

      Greg’s idea sounds like something worth investigating.

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