Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Problems handle SAP-Transaction with WCF-custom adapter
- This topic has 0 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
September 12, 2008 at 5:57 AM #20706
Hello,
I have a problem while using the new SAP-Adapter (Microsoft BizTalk Adapter 3.0 for mySAP Business Suite) in my Biztalk-Orchestration (Biztalk 2006 R2, OS: Windows 2003 server).
Here comes a short description of my process:
We get a flatfile with order data from our customer. I’am using a pipeline to disassemble the data, group them to the associated ordernumbers and start one orchestration (A) for each ordernumber. This orchestration A enrich the data with some SAP-masterdata (by calling suborchestrations with BAPI-calls) and mapp the data at the end of the orchestration A to a new message associating the xml-schema “BAPI_SALESORDER_CREATEFROMDAT2“. I have swapped out the call of the bapi BAPI_SALESORDER_CREATEFROMDAT2 in a seperate orchestration (B), because I want to reuse it for other customer processes.In the suborchestration B I call the BAPI_SALESORDER_CREATEFROMDAT2 with the message property (Microsoft.Adapters.SAP.BiztalkPropertySchema.ConnectionState) = “OPEN” and after a success response I send a BAPI_TRANSACTION_COMMIT (with message property (Microsoft.Adapters.SAP.BiztalkPropertySchema.ConnectionState) = “CLOSE”) or after a failure I send a BAPI_TRANSACTION_ROLLBACK (with message property (Microsoft.Adapters.SAP.BiztalkPropertySchema.ConnectionState) = “ABORT” ). I designed the orchestration B based on the Microsoft-sample “SAPTransaction.sln”.
This is my problem:
When I run my Biztalk-application the following error occurs for each orchestration I have started:System.InvalidOperationException: The Inner Channel to use was not found for the key {AED96A21-6BF5-4655-AEAF-4F565F00A358}_{E66DA192-8BDB-4C04-BEBA-FCBEF575D513};URI=sap://Client=123;lang=DE@a/xxx.xxx.xxx.xxx/xx. Specify a valid key.
Server stack trace:
bei System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
bei System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
bei System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
bei System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)Exception rethrown at [0]:
bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
bei Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
MessageID: {F0AF4082-8708-43E9-91BC-58BC0335E1B2}
InstanceID: {562B300A-D39A-4E1C-8A60-737809DF47E3}Here are my bindings of the SAP-sendport (WCF-custom adapter):
==> enableBizTalkCompatibilityMode = true
==> autoConfirmSentIDocs = false
==> enableBusinessObjects = false
==> enableConnectionPooling = false
==> enablePerformanceCounters = false
==> enableSafeTyping = true
==> flatFileSegmentIndicator = SegmentDefinition
==> generateFlatFileCompatibleIdocSchema = true
==> idleConnectionTimeout = 00:15:00
==> maxConnectionsPerSystem = 50
==> padReceivedIdocWithSpaces = false
==> receiveIDocFormat = TypedThis is very confusing:
When I start the orchestration B as a stand-alone orchestration (without calling from the orchestration A) then the Salesorder is created successfully at the sap system. But sometimes while the orchestrations are busy (I think when the connection is broken) all of the open orchestrations stop their work and produce the same mistake as written above.This is my suspicion:
I’am not very familiar with WCF, but I think the WCF-client (used by the Biztalk WCF-custom adapter) opens only one channel for all orchestrations and after a network or logon failure to the SAP system the channel stack is corrupt and all of the orchestrations aborts. Unfortunalety I can only configure the WCF-adapter at the context menu in the Admin console.I don’t find any help in the web (google, msdn, etc.). Has anyone a idea why my orchestration B don’t work as suborchestration, respectively what the message The Inner Channel to use was not found for the key … Specify a valid key. means ?
Thank you very much for your help.
Alex
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.