Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

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

Posted on by 90

I have two entities Login and Roles in N:N relationship. I have written a plugin on associate of Role in Login Master. On associating a Role to Login, "There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing" error is showing. The plugin is doing its work but role is not associated with Login. Role is associated to Login if I disable the plugin.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing.

    If you are ignoring the exception thrown by the service in the plugin, then it throws this error. You should catch the exception and take appropriate action. Probably, it is throwing this error if you are trying to associate two records who are already associated or disassociate where association doesn't exist.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans