FILE receive adapter deleted the empty file without performing any processing.

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › FILE receive adapter deleted the empty file without performing any processing.

Viewing 1 reply thread
  • Author
    Posts
    • #22393

      Hi,

      I have been facing a problem with empty files in Receive port. Generally,empty files are not picked up by BizTalk and deleted with processing.

      I have a receive port associated with orchestration. I want to receive files to my receive location and if file is empty, an email is sent to group
      notifying about empty files.

      Is is possible to pick up empty file from orchestration and inside  orchestration I can check for file length and if size = 0 then send email notification from orchestration.

      OR

      Is it possible to detect empty files and send email from receiving location?

      Please let me know How do i achive it?

      Thanks and regards,
      Nagesh

    • #22397

      I believe you will need a custom adapter to detect empty files.

      When the file adapter creates a message from the file content. If the file is empty it does not create a message, so processing stops inside the adapter. So no pipeline is executed and no message is delivered to the messagebox.

      There is an example file adapter in the SDK:    C:\Program Files\Microsoft BizTalk Server 2006\SDK\Samples\AdaptersDevelopment\File Adapter
      You could modify this code to create an error message and send to Biztalk if the file is empty. You could then have an orchestration that would consume this error message and send an email

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