Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

problem with debbugging in post-create mode

(0) ShareShare
ReportReport
Posted on by 645

I am trying to debug a plugin of incident entity in postcreate stage.

In that stage I update the incident, but I get from the service.update  an error that the record is not exist (the guid does not exist) and I don't understand why.. in the post-create mode the entity already has been created.  Why do I get this error? Am i missing something?

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: problem with debbugging in post-create mode

    Hi ,

    There might the reason due to slowness  ,If I am not wrong registering plugin as Asynchronous should work for you. What happen without debug your plugin does its working as expected?

    This has been raised earlier as well -

    community.dynamics.com/.../299983

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: problem with debbugging in post-create mode

    Good to hear this.

    Did you register it as Asynchronous?

    Most probably is that the SQL transaction is not yet committed into the Database. That's why when you try to Update the record that is not yet submitted at the same time, it gives you the error.

    Charles.

  • sahara Profile Picture
    sahara 645 on at
    RE: problem with debbugging in post-create mode

    Hey Charles

    The code I'm debugging is working today with no problems, I can't change it. But I need to know why do I get this prob

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: problem with debbugging in post-create mode

    Hello,

    Register your plugin as Asynchronous and try again.

    Charles Abi Khirs.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

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,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans