How to ignore unexpected message types

Home Page Forums BizTalk 2004 – BizTalk 2010 How to ignore unexpected message types

Viewing 1 reply thread
  • Author
    Posts
    • #20980

      I have a folder in FTP where I will receive xml messages that have DTD processing instruction. I wrote a decoding component to remove the DTD processing instruction and it is working for all messages.

      I also attached an XMLDisassembler component to my pipeline to process the message type that I am expecting and it is working fine. After that, I came to know that I also receive other types of messages to the same folder. So, my orchestration is suspending other messages with the exception saying “No Disassemble stage components can recognize the data”.

      How can I just ignore the messages if they are not of the type that I am expecting? I don’t want the message to be suspended if it is not of the type that I am expecting.

      Thanks In advance.

    • #20983

      A couple of options occur to me. In either one, the first thing to do is to enable the AllowUnrecognized property of the XML Disassembler so that it doesn’t generate an error if the document schema cannot be found. The second part is discarding unrecognized messages. For this, I can think of two options:

      1. Set up a second subscription that will get messages from the receive location and route them (so that they don’t get suspended) and then discard them. This could be done by simply dumping them to a folder you clean periodically, or using something like my /dev/null adapter.
      2. Create a custom pipeline component that runs after the xml disassembler looks for unrecognized messages (not sure exactly how, but I think it can be done) and then simply swallows them.

       

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