Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

WCF LOB SQL binding Adapter Causes issues when the property UseAmbientTransaction set to True

$
0
0

In Biztalk we are using WCF LOB adapter to execute a set of stored procedures on execute all or none basis using UseAmbientTransaction set to true. It worked fine before we implementing Error handling. After adding Scope to my orchestration to handle exceptions and  UseAmbientTransaction set to true then we are getting following error.

System.Data.SqlClient.SqlException (0x80131904): Cannot roll back PatientCreate. No transaction or savepoint of that name was found.

Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 1, current count = 2.

Uncommittable transaction is detected at the end of the batch. The transaction is rolled back.

Cannot log error since the current transaction is in an uncommittable state. Rollback the transaction before executing uspLogError in order to successfully log error information.

The 'uspPatientCreate' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

Server stack trace:

at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)

at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)

So we are getting issues after implementing error handling. Cant we use Orchestration Scopes when we set UseAmbientTransaction property to true? If so what is the solution. Please help. Thanks


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>