Skip to main content

Notifications

Microsoft Dynamics AX forum

Microsoft.Dynamics.Ax.Xpp.DeadlockException

Posted on by 110

Hi All,

We are using AX 2012 R3 CU8.

When I check event viewer in the AOS server I can see an error related to deadlock listed bellow

"Object Server 01: Microsoft.Dynamics.Ax.Xpp.DeadlockException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.DeadlockException' was thrown.

at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.UpdateAll(IntPtr table)
at Dynamics.Ax.Application.BatchRun.serverProcessDependencies(Boolean forceProcessing, Boolean ) in BatchRun.serverProcessDependencies.xpp:line 152
at Dynamics.Ax.Application.BatchRun.serverGetTask(Batch batch, String serverId) in BatchRun.serverGetTask.xpp:line 43
at BatchRun::serverGetTask(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.startTask()
at BatchIL.threadFunc(Object threadArg) "

 

I didnt find any issues in AX and its working normal, please advice how to identify and rectify this error 

*This post is locked for comments

  • Jie G Profile Picture
    Jie G on at
    RE: Microsoft.Dynamics.Ax.Xpp.DeadlockException

    Hi John,

    Can you reproduce the deadlock issue? If so, you can consider to use SQL Profiler to capture information about deadlock by category "Locks". It will tell you which resource was locked and the related query so that you can have some clues about this issue.

    Best regards,

    Ada

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Microsoft.Dynamics.Ax.Xpp.DeadlockException

    This is a Deadlock error in your SQL server database when a row is locked and something else is trying to access it, while it is holding resources that the other task requires.

    technet.microsoft.com/.../ms177433(v=sql.105).aspx

    Maybe you have too high number of batches, or batch threads, or number of batch AOS instances? That may lead to deadlocking in the Batch table

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,782 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,067 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans