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

DB Deadlock caused by changetracking trigger

(0) ShareShare
ReportReport
Posted on by 627

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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans