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

  • Verified answer
    CRM Beginner  Profile Picture
    795 on at
    RE: There is no active transaction : Error

    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

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at
    RE: There is no active transaction : Error

    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.

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at
    RE: There is no active transaction : Error

    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
    Pawar Pravin  Profile Picture
    5,237 on at

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans