Assume that you use a Microsoft Windows Communication Foundation (WCF)-based SAP adapter from Microsoft BizTalk Adapter Pack 2010 to connect to an SAP system on a Microsoft BizTalk Server-based computer. You encounter some errors when the WCF-based SAP adapter receives intermediate document (IDOC) messages from the SAP system. In this situation, the IDOC messages may become stuck in the Transaction Executing state in SM58 in the SAP system. Additionally, the following error messages are logged in the Application log on the BizTalk Server:
<EventData><Data>WCF-Custom</Data><Data> System.Runtime.InteropServices.COMException (0xC0C0163C): Exception from HRESULT: 0xC0C0163C at Microsoft.BizTalk.TransportProxy.Interop.IBTTransportBatch.SubmitMessage(IBaseMessage msg) at Microsoft.BizTalk.Adapter.Wcf.Runtime.Batch2.SubmitMessage(IBaseMessage message, Object userData) at Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkExecutionQueue.DequeueTaskCore() </Data></EventData>
<EventData><Data>WCF-Custom</Data><Data> Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_INVALID_HANDLE. AdapterErrorMessage=An exception has occurred on the listener while executing RfcWaitForRequest.. at Microsoft.ServiceModel.Channels.Common.Channels.AdapterReplyChannel.EndTryReceiveRequest(IAsyncResult result, RequestContext& requestContext) at Microsoft.Adapters.Internal.LayeredChannelBindingElement.LayeredInboundChannel`1.System.ServiceModel.Channels.IReplyChannel.EndTryReceiveRequest(IAsyncResult result, RequestContext& context) at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext) </Data></EventData>
Note This issue also occurs when the WCF-based SAP adapter host shuts down or intermittent network issues occur.