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

Batch Jobs not Running on Ax 2012 R2

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I know that there are a lot of topics dealing with this issue, but none of them solved my scenario.

I have an instance of Microsoft Dynamics Ax R2 installed on the homologation environment of a client and the batch jobs on this server stopped running. I don't have any information on changes on the environment, but they worked for years until last february.

New jobs stay with "Waiting status" and never start. Older ones stopped running after Feb 20th.

The same batch job that I'm trying to run runs perfectly on production environment, but I tried running some standard Ax jobs and they also keep with "Waiting" status forever.

Here is what I've checked/tried so far:

* The server runs a single AOS and it's configured as a batch server on Server Administration

* The schedule for the batch server is configured from 00:00:00 to 23:59:59, with 8 maximum batch threads.

* I tried running with the empty batch group and also tried creating a new one (both of them have my AOS configured as batch server).

* I tried schedulling it for some time on the future (2 minutes or so).

* Also tried removing the batch group from the server and then adding it again.

* I deleted every batch process previously configured and then tried running my job with no success.

* I tried generating a full CIL compilation (also tried excluding the contents from the XPPIL folder and XPPASSEMBLY table and then running a full CIL compilation)

* Also tried restarting the AOS service and the server itself.

None of the above tries did work. Is there something I might be missing?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Batch Jobs not Running on Ax 2012 R2

    I have published an article for things to consider if batch jobs are not running, have a look:

    www.daxrunbase.com/.../troubleshooting-batch-jobs-in-ax

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Sasha, Unfortunately our cutomer started migrating from Dynamics to another ERP and never let me continue the tests, but nothing that I did recommended by you guys in the forum worked. Most likelly the Dynamics Ax at this environment is somehow corrupted.

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Do you got a solution?

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi Suresh,

    I deleted the history of jobs for testing but still it won't work.

    I'm checking this issue with Microsoft support now, when I get a Solution I'll post it here. Thanks for all the help!

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Make sure that the user with whom you are trying to execute the batch job is an enabled and valid AX / Active Directory user with the required security privileges.

    Check if the AX AOS instance in the AX Server configuration within the System administration module is enabled as a Batch server, and has the Batch groups listed for the instance that you are also selecting for running that particular batch job. It is possible that the batch task gets a different batch group from the one you selected such as with Master Planning, which typically gets the empty batch group.

    Your application must be error-free, the CIL that you generated should have no errors.

    Disable debugging in the AX Server Configuration tool, it should not be on for Production instances.

    Truncate the table contents in SysBreakpoints and SysBreakpointList tables in SQL, maybe a breakpoint is causing your issues that processing does not run.

    Validate customizations on any classes that run with Batch*, maybe your batch framework was customized or got broken.

    If nothing helps, you may still open a ticket with Microsoft to get help.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi Joao L dos Reis Santos,

       Have you tried to debug any class? and clear the usage data also! And if you have huge batch jobs history delete them and also delete all pending batch jobs from history then run one batch job with less data after reset the usage data.

    Thanks

    Suresh  

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi Suresh,

    Thanks for the idea, just tried that.

    I cleared the cache from the Development options (Tools > Caches ...) and also tried stopping the AOS and deleting the AUC files from AppData.

    But still, the jobs won't run

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi,

      Have you tried clearing the cache!

    Thanks

    Suresh

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi Suresh,

    when I schedulled the jobs to execute normally I'm setting it to run each 1 minute, without a end date. But when I setted it to run only one time I didn't get any error message.

  • Community Member Profile Picture
    on at
    RE: Batch Jobs not Running on Ax 2012 R2

    Hi Anitha

    No job is executing and one of my first steps was deleting all previous jobs from the batch queue - none of them was executing by that time, but I thought one of them might be causing new ones to execute.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans