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)

Action Rollbacks while calling it from Sync Plugin

(0) ShareShare
ReportReport
Posted on by 358

Hi All,

 

We have a requirement where we need to trace an error log into another custom entity.

so to achieve this we have created a plugin which executes synchronous and we are calling the our action (name=logerror). Whenever there is an error we noticed that it rollbacks the record which created through this plugin along with the record created through action.

NOTE:

1. We have unchecked the rollback option in the action.

2.we don't want to use the executeMultiple request due to the limitation

3. We also tried to create another service in plugin but it is not supported.

4. we also noticed that while debugging the code it logs the trace.

 

Thanks & regards

Subhash Mahato

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    abhishek_255 Profile Picture
    1,614 on at

    I believe your plugin is registered either in Pre -op or post-op stages, any operation perform in this stage executes within the transaction boundary of plug-in,  and any error roll back operation performed or triggered by plug-in.

    consultantabhishek.blogspot.in/.../microsoft-dynamics-event-execution.html

    if my response helps you, please mark it as "Answered"

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    This is because of synchronous plugin, if you will change your plugin to asyn it won't rollback.

    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