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

Notifications

Announcements

No record found.

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 

I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 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
    14,679 Super User 2025 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
    25 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
    25 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans