Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Can i control Enable/Disable Rollback of a Workflow?

Posted on by 790

Dear all

i do have a bug in one of my workflows and i could not find it yet.

in order to help me understand what is going on in details, i created a new entity called LOG, and i am creating a LOG record before or after each step in order to capture certain values to help me find out what is the bug.

but, creating LOG records does not take place , i tried both synchronous and asynchronous but my LOG is not populated with new records.

this made me ask how the workflow works in terms of committing or rolling back transactions when errors occur.

i hope someone explains this to me, and will be great if there is a better way to debug what happens inside a workflow.

thanks,

  • Ahmad Saud Profile Picture
    Ahmad Saud 790 on at
    RE: Can i control Enable/Disable Rollback of a Workflow?

    thanks a lot Goutam for your detailed explanation, i really appreciate your cooperation and help since i started working on dynamics.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Can i control Enable/Disable Rollback of a Workflow?

    Hi Ahmad,

    You can not control the rollback of the workflow , its system defined. I believe you are aware that  troubleshoot any issue you can check in the background process where you will find the error .

    www.marksgroup.net/.../dynamics-365-how-to-troubleshoot-workflow-issues

    If you could not found anything in the background process , the idea what you did is great . But seems the record is not creating means either its rollback or the workflow has not been executed due .

    Any workflow activity that executes during the database transaction and that passes an exception back to the platform cancels the core operation. This results in a rollback of the core operation if it’s already occurred. In addition, any pre-event or post-event registered plug-ins or real-time workflows that haven’t executed yet. Any asynchronous workflows that are triggered by the same event won’t execute.

    Might be due to that reason your workflow is not executing and you cant see the log record , so you need to check what are the process is triggering in the event of the entity which you trigger the workflow, if one fails none of the workflow will be executed. The best way to narrow down this issue is to disable workflow if you have more than one in same entity event and try to enable one by one and see which workflow is failing.

    Hope this helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans