Nick's Blog

Biztalk gotcha!

WCF receive location and “Enabled routing for failed messages”

leave a comment »

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.

Untitled

 

Written by stormdweller

August 1, 2014 at 6:47 AM

Posted in Uncategorized

Leave a comment