FIX: "The 'Operation' element is not declared" error occurs when you use the WCF-WebHTTP adapter and dynamic send ports in BizTalk Server

Applies to: BizTalk Server 2013 R2 BranchBizTalk Server 2013 R2 DeveloperBizTalk Server 2013 R2 Enterprise

Symptoms


When you use the WCF-WebHttp adapter and dynamic send ports in Microsoft BizTalk Server to communicate to different endpoints, BizTalk Server is suspended and stops sending messages. Additionally, you may receive the following error message intermittently under load:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid configuration for the HTTP Method, or the mapping from Operation to HTTP method and Url.

Parameter name: mapping ---> System.Xml.Schema.XmlSchemaValidationException: The 'Operation' element is not declared.

at Microsoft.BizTalk.Adapter.Wcf.Config.AdapterConfigValidationHelper.<ValidateHttpMethodUrlMapping>b__1(Object sender, ValidationEventArgs args)

at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)

at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)

at System.Xml.Schema.XmlSchemaValidator.ThrowDeclNotFoundWarningOrError(Boolean declFound)

at System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, String namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String xsiSchemaLocation, String xsiNoNamespaceSchemaLocation)


Note You can successfully resume the suspended instance of BizTalk Server.

Resolution


Cumulative update information

The fix that resolves this issue is included in the following cumulative updates for BizTalk Server:

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.