There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.

Issue: I was getting this error “There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing” when I was trying to resolve a case in dynamics CRM. Below is the detail error message.

<s:Envelope xmlns:s=”http://schemas.xmlsoap.org/soap/envelope/”&gt;
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring xml:lang=”en-US”>There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.</faultstring>
<detail>
<OrganizationServiceFault xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts&#8221; xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”&gt;
<ActivityId>47a272d8-8312-43c0-a360-ed042eeced84</ActivityId>
<ErrorCode>-2147220911</ErrorCode>
<ErrorDetails xmlns:a=”http://schemas.datacontract.org/2004/07/System.Collections.Generic”/&gt;
<Message>There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.</Message>
<Timestamp>2018-07-09T08:36:55.4146969Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil=”true”/>
<InnerFault>
<ActivityId>47a272d8-8312-43c0-a360-ed042eeced84</ActivityId>
<ErrorCode>-2147220911</ErrorCode>
<ErrorDetails xmlns:a=”http://schemas.datacontract.org/2004/07/System.Collections.Generic”/&gt;
<Message>There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.</Message>
<Timestamp>2018-07-09T08:36:55.4146969Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil=”true”/>
<InnerFault i:nil=”true”/>
<OriginalException i:nil=”true”/>
<TraceText i:nil=”true”/>
</InnerFault>
<OriginalException i:nil=”true”/>
<TraceText i:nil=”true”/>
</OrganizationServiceFault>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Root Cause: as evident from the error message there was some issue with some custom plugins on case close action. I was not having any custom plugin (or workflow) on this action but there was one from Microsoft (ActivityFeeds.Plugins.CaseClose). After disabling both steps of this plugin case started to resolve without any error.

Seems like there is some issue with the activityfeed plugin. As this plugin form MS worked fine till now so I started analysing why it is failing in my case. And finally, we came to now that it was happening because of empty customer name.

Fix: If customer (account/contact) name/full name is blank “(No name)” you will get this error. To resolve this issue you need to provide firstname/lastname/name field value on customer record.

 

3 thoughts on “There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.

  1. Hi Prashant,

    I have checked the same the name field looks fine. Disabled the activy feed plugins also still getting the error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s