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, ...
Unanswered

DB Deadlock caused by changetracking trigger

(0) ShareShare
ReportReport
Posted on by 625

Hi I tried to Setup the changetracking inside Dynamics AX2012. Therefore I enabled the changetracking on the databases I want and created the triggers in the related tables.

My triggers are set on the following table:

  • ECORESPRODUCT
  • EcoResProductTranslation
  • InventDimCombination
  • RetailAssortmentLookup
  • EcoResProductCategory
  • EcoResProductMasterDimensionValue
  • EcoResInstanceValue
  • EcoResAttributeValue
  • EcoResValue

For all these tables I do have an update, insert and delete trigger.

since the changetracking is running I am not able tocreate values in  the EcoResValue table. There is always a deadlock on the DB

The error message Looks like

Cannot add arecord in The base table for other value tables that each stores values of a different data type (EcoResValue), RelationTypeField: xxxx, xxxxxxx. Deadlock, one or more users try….

Any suggestions why this happens and how I can track changes in the EcoRes Tables?

I have the same question (0)
  • Jim Ji Profile Picture
    on at

    How did you insert the records(SQL script / X++ / UI)? would you share your code or provide more information.

    Change tracking won't cuase deadlock issue normally.

  • Sunnyw Profile Picture
    on at

    Hello CRSW,

    In addition, you may want to work with DBA to gather deadlock event or report to understand what SQL statements involved with deadlock to troubleshoot further.  You can also obtain yourself using existing tools like extended event, see www.mssqltips.com/.../.  It would also be easy to troubleshoot in isolated environment with replication step as well.

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
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans