web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Sunnyw Profile Picture
    on at
    RE: DB Deadlock caused by changetracking trigger

    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.

  • Jim Ji Profile Picture
    on at
    RE: DB Deadlock caused by changetracking trigger

    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.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans