web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin Error "No Active Transactions"

(0) ShareShare
ReportReport
Posted on by

Hello Community,


I recently stated getting this error message after being locked out of CRM for exceeding storage capacity. It errors out when users try to create an opportunity and/or case.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220911</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <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>2014-08-26T13:28:59.3038691Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

Any ideas on how to fix this?

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    23 on at

    Hi,

    This error is usually caused by custom plugins that store OrganizationService or OrganizationServiceContext instances at the plugin member level. Since plugins instances are re-used across multiple threads this can cause this sort of issue. If you disable custom plugins - does this make the issue go away?

    Scott

  • tcardenas Profile Picture
    105 on at

    I'm experiencing the same issue, and we have no issues with storage capacity.

    I use the template microsoft provides for creating my plugins. I don't keep any references to the service as plugin member variables. Unless I am miunderstanding something it appears this is behavior is something specific to the sandbox.

    It appears the issue gets worse as the activity (i.e. plugin instances running) increases. I don't agree that turning off plugins is a valid workaround. If I get rid of my plugins, then who does the work?

    I have not yet found a reasonable explanation as to why plugins just die at, seemingly random time intervals, with this error. Also, re-running a plugin on the same item works the second time around. So I know its not an issue with the code.

    I have not had any luck profiling the plugins either as I am unable to reproduce the issue at that point. This is really frustrating.

  • Community Member Profile Picture
    on at

    I have found the resolution to the issue. It had to deal with our customized solution, we imported into the system for our user adoption configuration.  We could not delete the solution however by revisions the version number to one up like 2.0.0.1 it tricked the system to believe it was a new solution and corrected the issue. We still have to test to confirm but it seems to have resolved our issue. Hopes this helps.

  • tcardenas Profile Picture
    105 on at

    I solved my issue, but it was the ActifityFeeds, plugins that were giving us grief.

    http://stackoverflow.com/questions/25755770/microsoft-dynamics-crm-2013-plugin-there-is-no-active-transaction-error

    Hope this helps someone else.

  • houstonbrooke Profile Picture
    on at

    I'm getting this error too, and as far as I know I've never installed or changed my plugins. I've installed solutions and created new processes, but not plugins. Where would I even go to try and deactivate these?

    EDIT - Ah, nevermind. I altered my google search and came up with the answer here - http://missdynamicscrm.blogspot.com/2014/07/enable-and-disable-plugin-steps-crm-without-plugin-registration-tool.html 

  • Community Member Profile Picture
    on at

    Obviously.  No plugin running, no error. Good solution for  error. Bad solution for project

  • Josh J A Profile Picture
    50 on at

    I am having the same issue but mine is coming from a plugin that fires on an update that is being called when I update the field from a custom action.  In short the error is not being passed back from the plugin to the workflow so the error cannot be handled.

    I have tried to assign the message to the SharedVariables of the IExecutionContext as well as the ParentContext but I am not having any luck.  I am guessing you can only share variables from workflow to workflow or plugin to plugin.  I don't know if this helps anyone else as this seems to be fairly generic.  

    I would be greatly indebted to anyone who can help me better understand the pipeline as it relates to a custom action workflow (C#) calling an update that fires a plugin and whether they are separate pipelines or how they are related and weather or not I can communicate between the 2.

  • Daryl LaBar Profile Picture
    500 Most Valuable Professional on at

    I was receiving the exact same error using CRM Online 2015.1.  It turned out that somehow we had duplicate plugin steps registered for the ActivityFeeds.  Once we removed the duplicate registrations, the issue went away.

  • srinivascrm Profile Picture
    30 on at

    Disable to the below duplicate ActivityFeeds and it should eliminate your issue
    ActivityFeeds.Plugins.ActivityClose:SetStateDynamicsEntity of phonecall
    ActivityFeeds.Plugins.ActivityCreate:Create of phonecall

  • manojmashetty Profile Picture
    67 on at

    he problem got resolved when I disabled the custom plugin.

    but when I disable custom plugin the task which i need to make will be stopped so is there any other solution to overcome the problem of "No Active transaction" error?????????????????

    My scenario is I am copying details from one form1 to another form2. In form2 i have used check box to retrieve details using JavaScript . when i fill all the details in the form1 and i check in the form2 then there is no issue. when when i left all fields empty in the form1 then when i check the check box in form2 then i am getting the Error "there is no active transaction".This is my issue

    Note:

    The details which i am copying from form1 to form2 were not included in the plugin. the main purpose of the custom plugin in my project is to mask the values;just I am copying address details.address details are not needed to mask  .Mask means for example if mobile number is 1234567890 then plugin will mask the number as XXX-XXX-7890

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans