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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Process failure in sync and async mode results in what

(0) ShareShare
ReportReport
Posted on by 21

Hi Guys,

     Can you please help me to know, what happens in below scenario

1. Plugin registered in PreValidation stage in sync mode fails. What happens in that case, will the plugin registered in PreOperation execute or is there any rollback involved.

2. Plugin registered in PreValidation stage in async mode fails. What happens in that case, will the plugin registered in PreOperation execute or is there any rollback involved.

3. Plugin registered in PreOperation stage in sync mode fails. What happens in that case, will the platform core operation execute or is there any rollback involved.

4. Plugin registered in PreOperation stage in async mode fails. What happens in that case, will the platform core operation execute or is there any rollback involved.

5. If platform core operation fails, will the changes made by PreValidation & PreOperation get rollback.

6. Plugin registered in PostOperation stage in sync mode fails. What happens in that case, will the platform core operation as well as changes made by PreValidation & PreOperation get rollback.

7. Plugin registered in PostOperation stage in async mode fails. What happens in that case, will the platform core operation as well as changes made by PreValidation & PreOperation get rollback.

Thanks in advance

*This post is locked for comments

I have the same question (0)
  • DynamicsCRM365Dev Profile Picture
    21 on at
    RE: Process failure in sync and async mode results in what

    As per my understanding the async mode plugin run on different thread by async service

    If pre-operation/post-operation plugins defined in async mode fails, still the operation will get rollback?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Process failure in sync and async mode results in what

    Hi Prashant,

    Execution in pre-validation stage might not be part of the database transaction.

    If pre-validation plugin fails, the operation is not rolled back and hence pre-operation and post-operation plugins will get triggered.

    If pre-operation plugins fails, the operation is rolled back and hence post operation will not be triggered.

    See: crmbook.powerobjects.com/.../event-pipeline

    Hope this helps.

  • DynamicsCRM365Dev Profile Picture
    21 on at
    RE: Process failure in sync and async mode results in what

    In PreValidation, suppose we are making some validation check.

    How will PreValidation plugin behave, if there is failure in plugin.

    1. in sync mode, if failure happens will the PreOperation plugin execute or if we don't have PreOperation plugin will the platform core operation execute.

    2. in async mode, if failure happens will the PreOperation plugin execute or if we don't have PreOperation plugin will the platform core operation execute.

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    2,914 on at
    RE: Process failure in sync and async mode results in what

    Hi,

    You must understand Plugin will run in sequence. So if you have PreValidation Plugin and failed, It will not triggering PreOperation, PostOperation.

    Do you mean that in PreValidation, there is update to another entity that has PreOperation Plugin?

    Async and Sync actually will have same result. Only if Async it will run at behind. So when it failed, you need to go to Setting > System Jobs there to check the detail error.

    All the information you need already in msdn.microsoft.com/.../gg327941.aspx article.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans