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)

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)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Joao L dos Reis Santos,

         Your getting any error after batch job end time? Please try giving alerts for Batch Jobs?

         Alerts.JPG

    Please try this for any batch job.

    Thanks

    Suresh

  • Anitha Eswaran Profile Picture
    312 on at

    Hi,

    Do you see any existing batches which are in "Executing " state.

  • Community Member Profile Picture
    on at

    Hi Suresh,

    The alerts are already configured but since the batch job never starts, no alert ever occurs.

  • Community Member Profile Picture
    on at

    Hi Joao L dos Reis Santos,

        Why I'm asking because, for a batch job you will set end date also right?

        After that end time is showing anything?

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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

    Hi,

      Have you tried clearing the cache!

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    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

  • Suggested answer
    Community Member Profile Picture
    on at

    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  

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

    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.

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