WCF receive location and “Enabled routing for failed messages”
If a message failed schema validation on a WCF web http port, the system sending the message will get a 500 error but there won’t be any suspended messages in BizTalk. That means, even if you have checked “Enable routing for failed messages” on the receive port, the message won’t be routed because there is no message suspended.
After some googling, I found a post originally answered by my ex-colleague Colin:
http://stackoverflow.com/questions/22513010/creating-failed-message-on-wcf-customisolated-receive-location
Basically for WCF receive locations, you will need to configure the location to generate a suspended message in the case of a failure in the pipeline. You can do this by going into the WCF adapter configuration in the receive location, click the “Messages” tab and check “Suspend request message on failure”. Combining this option and “Enabled routing for failed messages”, the failed message should now be generated and routed correctly.
Leave a comment