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

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

    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.

  • Esther Mulijono Profile Picture
    435 on at
    RE: Dynamics event log error Microsoft.Dynamics.Ax.Xpp.DeadlockException

    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.

  • Community Member Profile Picture
    on at
    RE: Dynamics event log error Microsoft.Dynamics.Ax.Xpp.DeadlockException

    [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.

  • Martin Dráb Profile Picture
    233,352 Most Valuable Professional on at
    RE: Dynamics event log error Microsoft.Dynamics.Ax.Xpp.DeadlockException

    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?

  • Suggested answer
    Umesh Pandit Profile Picture
    9,303 User Group Leader on at
    RE: Dynamics event log error Microsoft.Dynamics.Ax.Xpp.DeadlockException

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

    community.dynamics.com/.../97953.aspx

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans