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 :
Microsoft Dynamics AX (Archived)

Deadlock in BatchRun.serverGetTask()

(1) ShareShare
ReportReport
Posted on by

how to resolve the following issue in AX

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.serverGetTask(Batch batch, String serverId) in BatchRun.serverGetTask.xpp:line 27

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)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at
  • Martin Dráb Profile Picture
    237,963 Most Valuable Professional on at

    Are you able to reproduce the issue? If so, activate SQL server tracing for deadlocks - it will tell you which resources were locked and by which queries. Otherwise you will have to analyze source code and try to guess what happened, which is often very difficult.

    By the way, do you know what deadlock is?

  • Community Member Profile Picture
    on at

    [quote user="UMESH PANDIT"]

    check this tech.alirazazaidi.com/dynamics-ax-2012-xpp-errorexception

    https://community.dynamics.com/ax/f/33/t/97953.aspx

    [/quote]

    That's a different error in those links. We are also getting that same specific error from the OP. There are no deadlocks being detected in SQL Server at the same time, but these errors cause the Dynamics AX jobs to terminate without being flagged as an error.

  • Esther Mulijono Profile Picture
    435 on at

    Hi All,

    Have anyone found solution for this problem?

    We faced the same issue, just slightly different stack trace

    Object Server 03:  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.serverProcessFinishedJobs(Boolean forceProcessing, Boolean ) in BatchRun.serverProcessFinishedJobs.xpp:line 166

      at Dynamics.Ax.Application.BatchRun.serverProcessFinishedJobs(Boolean forceProcessing)

      at BatchRun::serverProcessFinishedJobs(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at BatchIL.checkFinishedJobs(Boolean forceProcessing)

      at BatchIL.threadFunc(Object threadArg)

    happened when we start the AOS

    and the AX client also always crashing so we cannot open AX.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Did you have batches running (executing status) when you have stopped the AOS? Have you deployed code customizations? How are you releasing your changes (preferred: AX modelstore, with a successful full application compile and full CIL)? Is your AX AOS using the latest kernel hotfixes for the version that you are using?

    Make sure you verify all of the above.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans