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)

There is no active transaction : Error

(0) ShareShare
ReportReport
Posted on by 795

Hello,

While deploying a custom plugin, i am getting the following error :
"There is no active transaction. This error is usually caused by custom plug-ins that ignore errors from service calls and continue processing" .  If i unregister it and work again, it works fine else it throws error. How do i rectify it?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pawar Pravin Profile Picture
    5,237 on at
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi

    from my experience , this error generally comes if you have a try catch block in your code and catch the exception but donot throw it. For example the code should be like.

    try

    {

    }

    catch (Exception Ex)

    {

    Throw new InvalidPluginExecutionException(Ex.message) // throw exception which is cought earlier.

    }

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    point to note is - you have an error in your code this is not a real/underlying error - try to debug and find the culprit line.

  • Verified answer
    CRM Beginner Profile Picture
    795 on at

    Thank you all for your replies. It was caught after unregistering my custom plugin and i get to know the issue.

    The issue was in pre or post operation registering plugin. I resolved it.

    Thanks

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)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans