SBX - Search With Button

SBX - Forum Post Title

Plugin Error "No Active Transactions"

Microsoft Dynamics CRM Forum

dlsmith36 asked a question on 27 Aug 2014 2:45 PM
My Badges

Question Status

Suggested Answer

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?

Reply
Daryl LaBar responded on 10 Feb 2017 3:10 PM
My Badges

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.

Reply
Larry.Welch responded on 10 Feb 2017 4:39 PM
Suggested Answer

Thanks for the explanation Daryl, makes perfect sense!

Reply
Steven Rasmussen responded on 17 Mar 2017 2:50 PM
My Badges

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.

Reply
Chad Rexin responded on 20 Dec 2017 4:15 PM
My Badges

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.

Reply
Ryan Watson responded on 8 Mar 2018 10:44 AM
My Badges
Suggested Answer

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.

Reply
eyal levi responded on 4 Feb 2019 7:26 AM

check the system user, check if he has email address

Reply
Clément Olivier responded on 18 Aug 2016 5:58 AM
My Badges
Suggested Answer

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

Reply
Larry.Welch responded on 10 Feb 2017 4:39 PM
Suggested Answer

Thanks for the explanation Daryl, makes perfect sense!

Reply
Ryan Watson responded on 8 Mar 2018 10:44 AM
My Badges
Suggested Answer

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.

Reply

SBX - Two Col Forum

SBX - Migrated JS