Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 CRM Plugin Debugging

(0) ShareShare
ReportReport
Posted on by 185

Hi,

I am debugging a plugin (Dynamics 365 CRM online version).In the plugin logic, first I am updating an opportunity and then creating a customer record and then creating a lead.when I am debugging the plugin, first two steps are successful (i.e. updating an opportunity , creating a customer record) ,but it's throwing an exception at final step, i.e. while creating lead.


When I stop the debugging and check in CRM, I can see opportunity updated & customer record got created.I am guessing, as the plugin failed in the last step , first two changes should be reverted . Why it's not happening? Any idea ?

*This post is locked for comments

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Dynamics 365 CRM Plugin Debugging

    It is not reverting because you are debugging it.

    Let us know exception and also try your code without debugging then It must revert all changes.

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,231 on at
    RE: Dynamics 365 CRM Plugin Debugging

    Hi ,

    While debugging plugin as well changes can be reflected in CRM, hence after failing the particular code as it it supposed to be it will not create lead same time. This is because service.create, service.update, service.delete works independently so and so forth.

    Please share exception details as well as include tracing service in code to trace code as run-time in Plugin trace entity.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Dynamics 365 CRM Plugin Debugging

    Hi Dynamics 365 CRM,

    Please post your Plugin code, registered Plugin steps, and the exception you receive.

  • Jamil Lamyae Profile Picture
    Jamil Lamyae 5 on at
    RE: Dynamics 365 CRM Plugin Debugging

    In which stage the first steps are registred

    Pre validate ,...?

  • gdas Profile Picture
    gdas 50,089 on at
    RE: Dynamics 365 CRM Plugin Debugging

    Please share exception details .

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans