web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans