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 Job stuck in "Waiting" state

(0) ShareShare
ReportReport
Posted on by

Hi All,

I've created a class which extends a RunBaseBatch and overrides the run, pack , unpack and runsImeronated methods and schedule the class using job in x++ with batch server group and server id.

The batch job showing in batch job form but never execute always showing in waiting state.

Any help would be really appreciated.

Thanks

NOTE:- I've checked the server configuration for following things:-

  •  Is Batch Server is checked for AOS instance which I am using
  •  I've created a new batch group and it is in selected groups
  •  Server is showing the Maximum Threads 8 and StartDate 12:00:00 am and EndDate 11:59:59 pm

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,407 Super User 2025 Season 2 on at
    RE: Batch Job stuck in "Waiting" state AX 2009

    Hi Samira,

    Can you tell if other batch jobs can run without issues? Probably try to run a standard report via the batch jobs.

    Did you also try to restart the AOS service?

  • ShiviG Profile Picture
    on at
    RE: Batch Job stuck in "Waiting" state AX 2009

    Hi Andre,

    Almost all the batch jobs are in waiting state. 1 or 2 are in canceling state and none of the job is in Executing state.

    I've not tried to restart the AOS service.

    Please suggest how I can run a standard report via batch job.

  • Douglas Noel Profile Picture
    3,905 on at
    RE: Batch Job stuck in "Waiting" state AX 2009

    - Class runs On Server?

    - Did you have a AOS which is processing the EMPTY '' Batchgroup.

    - Did you take a look at the "Batch Heartbeat Table" BatchGlobal (3 records  withdatetimes) should be updated in 1/3/5 Minute intervals.

    You have to look at this table using SQL Management Studio (or set table and all field property to visible yes)

    - If the BatchSystem is running OK, then check the recurrence/time Settings in the created Batch

    It should be picked

    regards

    Douglas

  • ShiviG Profile Picture
    on at
    RE: Batch Job stuck in "Waiting" state AX 2009

    Hi Douglas,

    - Yes, Class runs on server.

    - Yes, AOS have a empty batchgroup.

    - When I try to open the BatchGlobal table from Sql Administration it shows me error: "not enough rights to open this table"

  • André Arnaud de Calavon Profile Picture
    299,407 Super User 2025 Season 2 on at
    RE: Batch Job stuck in "Waiting" state

    Hi Samira,

    If other batch jobs should have run already, I would first try to restart the AOS. Then it should run again. Recently I had a similar behavior at another customer on AX2012 where no batch jobs were executed anymore. The restart of the AOS service helped in that case.

  • Douglas Noel Profile Picture
    3,905 on at
    RE: Batch Job stuck in "Waiting" state

    OK. Misread.

    You're speaking of Ax2009. Here you can Set Property maxAccessMode on table from 'None' to 'View', and the properties on the fields to visible yes)

    regards

    Douglas

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Batch Job stuck in "Waiting" state

    Hi samira_grazitti,

    Can you try run the Batch jobs with time intervals for you reports,

    It may works, please try.

    it is just a suggestion.

    Thanks,

  • ShiviG Profile Picture
    on at
    RE: Batch Job stuck in "Waiting" state

    Hi Andre,

    Thanks for answer.

    I will try with AOS service restart.

  • ShiviG Profile Picture
    on at
    RE: Batch Job stuck in "Waiting" state

    Hi Douglas,

    I am able to open the BatchGlobal table and there are 3 rows having values

    Name                                LastProcFinishedjobs

    CleanUpDeadTasks            - 9/12 2015 09:07:06 am

    ProcessDependencies        - 9/12/2015 09:10:18 am

    ProcessedFinishedJobs       -9/12/2015 09:09:08 am

  • Douglas Noel Profile Picture
    3,905 on at
    RE: Batch Job stuck in "Waiting" state

    OK This is the HeartBeat (there seems to no HeartBeat), so Batch is NOT running.

    Question: Did you copy the database between environments or Computers or to another aos on the same Computer? (somewhere in December 2015?)

    Seems that no Batch is running since this date.

    regards - I'll come back

    Douglas

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans