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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to clear deadlocks?

(0) ShareShare
ReportReport
Posted on by 240

Please advice.

I have the same question (0)
  • Martin Dráb Profile Picture
    238,828 Most Valuable Professional on at

    What do you mean by "clearing" a deadlock?

    You can try to prevent deadlocks or you can recover from a deadlock, but I don't know what you might mean by clearing them.

  • Suggested answer
    julia146 Profile Picture
    Microsoft Employee on at

    Hi Mark,

    To avoid deadlock, usually you need to focus on the code.

    Below is an example for deadlock:

    1. Transaction1 locks record1

    2. Transaction2 locks the record2

    3. Transaction1 requests lock on record2, cannot lock as the record2 is already locked by Transaction2

    4. Transaction2 requests lock on record1, cannot lock as the record1 is already locked by Transaction1

    Neither of the transactions could continue, one of the transactions must be sacrificed to unblock the deadlock.

    For troubleshooting this, you could take AX trace and see if any clue that a certain record of this table is updated by different transactions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 517 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 440

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans