We deployed our BizTalk application recently into a test environment. We receive a standard ConfirmBOD from an external system. It seems two applications already have deployed to the test environment and deployed definitions of the ConfirmBOD. When we deployed and received a ConfirmBOD, it was suspended due to the multiple definitions in the database.
We found some web sites that suggested creating a custom receive pipeline and use the Document Schema collection to restrict the set of schema definitions. This works as long as we set a single schema in the schema defintions collection. Once we add a second schema to the custom pipeline and recieve a message via that pipeline, the message gets suspended with a "Index was outside the bounds of the array".
The custom schema is real simple. The only shape we use is the XML Disasembler in the disasemble phase. The only change we make is add two schema to the Scehma Definitions collection. We then do a build and deploy making sure to assign the pipeline to the appropriate receive location in the BizTalk explorer.
Oddly enough, we have two schema that seem to be able to co-exist and work together in the custom pipeline but any other combination of two schema or any that has three fails with the index error.
Hopefully there are some ideas out there. Thank you for your time.
Jeff Tressler