Re: How to ignore unexpected message types

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

#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.