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

Deadlock issues

(0) ShareShare
ReportReport
Posted on by 200

Occasionally I get a deadlock error when creating customers using the custCustomerV3Entity.

It is caught by the try catch block structure so data is fine.

However I can't see which table has caused the deadlock.

It can be contactinfo or any other table used in the entity which is blocked for update by another process.

I can't see which method in the update process that has caused the deadlock as the xsession::xppcallstack only shows the call stack until the method where the try catch block is placed.

Therefore - is there any way I either can see the tables that caused the deadlock or the call stack, so I can investigate which tables cause the deadlock 

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    15,288 Super User 2026 Season 2 on at

    Hi ErikKornerup,

    Do you import customer in Excel format manually via Customers V3 entity?

  • ErikKornerup Profile Picture
    200 on at

    Hi

    No I insert into a staging table and this staging table is used in a batchjob to create customer table records using the customersV3 entity

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    15,288 Super User 2026 Season 2 on at

    Hi Erik,

    Can you try to import the data via Excel file in Data Management to check if you get the error message while import?

    It would be great to use the same heading and values that you use via insert.

  • Suggested answer
    nunomaia Profile Picture
    27 Moderator on at

    In a Production environment, if you open LCS in environment monitoring you list all events of type "All deadlocks in the system" and try to get the source of error.

    In Sandbox or dev environments you can use SQL Server to detect deadlocks    

  • ErikKornerup Profile Picture
    200 on at

    I know that, but i would like to add the information of the locked tables in the infolog, so it is clear  for the end user which table has the deadlock.

  • ErikKornerup Profile Picture
    200 on at

    The error comes from time to time and therefore it is not an option to use Excel. The error occurs because another process is updating the table, but as I can't see which table is deadlocked, I can't investigate which process is the sinner :-)

  • nunomaia Profile Picture
    27 Moderator on at

    In code, I'm not aware. Only using LCS to track the source of the error.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 213 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans