Yossi Dahan [BizTalk]

Google
 

Monday, April 23, 2007

Error in receive pipeline: There is an error in XML document

I've received the following email from Oleg Gershikov today and though it was worth sharing:

There was an annoying problem with the tracking send pipeline in synchronic processes in the UAT environment. The process used to fail in send pipeline component with the following exception in event log:

“A response message sent to adapter "SOAP" on receive port "******" with URI "*********.asmx" is suspended.

Error details: There is an error in XML document (1, 2850). “

The error is confusing because xml was valid and we don’t have any xml validation/parsing element in our send pipeline.

What was really helpful is Negative Acknowledgement (NACK) message which could be found in the suspended instance in BTS Admin console:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>Microsoft BizTalk Server Negative Acknowledgment </faultcode>
<faultstring>An error occurred while processing the message, refer to the details section for more information </faultstring>
<faultactor>******************.asmx</faultactor>
<detail>
<ns0:NACK Type="NACK" xmlns:ns0="http://schema.microsoft.com/BizTalk/2003/NACKMessage.xsd">
<NAckID>{CE79C6CF-CE45-4620-82E3-7BE6C2DFC78C}</NAckID>
<ErrorCode>0xc0c016b7</ErrorCode>
<ErrorCategory>0</ErrorCategory>
<ErrorDescription>There is an error in XML document (1, 2867).</ErrorDescription>
<ErrorDetail>Login failed for user ''. The user is not associated with a trusted SQL Server connection.</ErrorDetail>
</ns0:NACK>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>

ErrorDetail node contained actual exception reason. It appeared to be database connection problem which was solved by cancelling impersonate in the web.config file.


Conclusion: Check NACK messages for SOAP adapter exceptions. It may contain important details.

Labels:

0 Comments:

Post a Comment

<< Home