Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
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=184.108.40.206, 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 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?
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.
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 220.127.116.11 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.
I solved my issue, but it was the ActifityFeeds, plugins that were giving us grief.
Hope this helps someone else.
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
Obviously. No plugin running, no error. Good solution for error. Bad solution for project
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.
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.
Disable to the below duplicate ActivityFeeds and it should eliminate your issueActivityFeeds.Plugins.ActivityClose:SetStateDynamicsEntity of phonecallActivityFeeds.Plugins.ActivityCreate:Create of phonecall
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?????????????????
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
I was having the same error message when closing an Incident in my custom Plugin.
After researching everything looks like it was a bug in Microsoft Plugin ActivityFeeds.Plugins.CaseClose.
But i did not wanted to disable a plugin that I did not write.
At the end, the problem was in my data.
The customer that was in the Incident did not have a fullName.
After adding a fullName to the customer, everything started to work OK
Hi iair In My case The Problem was having more than 3 plugins on the update.so there is one plugin is triggering without creating a GUID its gonna update in the database that's why i am getting the error there is no active transaction.
1)The Main Activity we need to do is Wee need check in the plugin registration tool that how many plugins are registered on the update/create
2)we need to keep the breakpoints on the each plugin which has been written on update
3)Debug the program.then it is easy to identify where the problem is exactly
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.
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.
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.
Thanks for the explanation Daryl, makes perfect sense!
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.
Business Applications communities