process empty message in Biztalk

Home Page Forums BizTalk 2004 – BizTalk 2010 process empty message in Biztalk

Viewing 1 reply thread
  • Author
    Posts
    • #15539

      I'm using PassThroughReceive & PassThroughSend pipeline to process a kind of file, but when the file is empty biztalk throw a warning:

      "The FILE receive adapter deleted the empty file 'C:\location\filename' without performing any processing."

       I need the file to be sent to destination place, even if it's an empty file (i need the filename), how should i do to cope with this?

       The only thing i can think of is:

      Set up a schema and set the Max Group Occurence and Min Group Occurent to be 0. And create a pipeline using this schema.

      But the file's structure is quite complicated, that's why i use passthrough pipeline.

       

    • #15540

      It is the file adapter that is discarding the message before being given to the pipeline. Creating a schema will not help as this is not used until the disassemble stage in the pipeline.

      You will need to create your own file adapter, for both receive and send.

      If the file is empty you need to create a dummy message, with a message context property that indicates that the file is empty. When the file is sent you will need to detect that if should be an empty file from the message context and discard the dummy message content

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