Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin Error "No Active Transactions"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • RE: Plugin Error "No Active Transactions"

    Hi, I get some error when closing my incident. I researched and found problem. Problem is that customer of incident has no name. I update name of customer and try again and finally ı could close my incident

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Error "No Active Transactions"

    check the system user, check if he has email address

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Error "No Active Transactions"

    Hi Everyone,

    I just ran in to this error today. Ours was self inflicted with field level security. Here was our solution:

    If your plugin is updating or creating a field, that you have a field security profile for, then you need to ensure that the "Update" and "Create" privileges on the security profile are set to yes. If the plugin is run in the context of the current user, the team that user is on would then need to have that field security profile assigned to it.

  • crexin Profile Picture
    crexin 137 on at
    RE: Plugin Error "No Active Transactions"

    I've seen this with customers that have had duplicate Activity Feed solution SDK Message Processing Steps.  This prevented things like completion of Activities due to the duplicate SDK Message Processing Steps.  We simply deactivated the duplicate SDK Message Processing steps, which then fixed the error and allowed the activities to be completed.

  • Steven Rasmussen Profile Picture
    Steven Rasmussen 60 on at
    RE: Plugin Error "No Active Transactions"

    Hi Josh, were you ever able to figure this out?  I'm running into the exact same issue and cannot figure why I'm unable to capture the error from the plugin in the workflow.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Error "No Active Transactions"

    Thanks for the explanation Daryl, makes perfect sense!

  • Daryl LaBar Profile Picture
    Daryl LaBar 500 Most Valuable Professional on at
    RE: Plugin Error "No Active Transactions"

    Larry.Welch 

    Plugin objects are created once, and then used multiple times.  So you open yourself up to race conditions if you are storing plugin context at the member level.  If I have a plugin that fires for an Update of Lead X, and before it finishes, another plugin fires on Lead Y, and now the context for Lead X will be lost and any interaction with the thread processing Lead X will be processing under Lead Y.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Plugin Error "No Active Transactions"

    Scott, can you provide more details on your response?  Why is this a bad practice?  I'm developing a plugin and storing the OrganizationService as a member variable instead of passing it to sub routines.  The value is newed each time the plugin fires.  This is the first time I've tried this and I have time to change the strategy but I'd like to understand the concerns.

  • Steeve G Profile Picture
    Steeve G on at
    RE: Plugin Error "No Active Transactions"

    I got this problem with a plugin that was registered On Post of Incident creation. Plugin that was developed was doing a SetStateRequest for changing state of the Record for the incident currently in creation mode. 

    This problem was occuring because the creation transaction was not completed yet.

  • Suggested answer
    Clem Profile Picture
    Clem 2,541 on at
    RE: Plugin Error "No Active Transactions"

    Hello Dominica,

    Can you check if your users have the correct permissions on the entities which trigger the error message ?

    I had the same error in the past and the read/write access were missing on the roles.

    Clément

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans