Skip to main content
Microsoft Dynamics AX forum
Suggested answer

Batch Job stuck in "Waiting" state

editSubscribe (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
Attachments
  • Java Programmer Profile Picture
    Java Programmer 2 on at
    Batch Job stuck in "Waiting" state
    Check the batch job history and logs for any errors or failure reasons that could explain why it's not starting. There may be exceptions or issues recorded there. Try restarting the AOS to rule out any temporary glitches. Sometimes recycling the AOS can help clear stuck batch jobs. Add more tracing/breakpoints in the run() method to watch execution flow in debugger. Step through to find where it hangs. If you want to become a Java programmer and learn online java tutorial, visit this website: https://javaprogramer.com
  • Suggested answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: Batch Job stuck in "Waiting" state

    Hi,

    I found two good links for troubleshooting batch jobs Troubleshooting batch jobs in AX and Troubleshooting Upgrade and CU Batch jobs stuck in a waiting status in Dynamics AX 2012 .

    You can check them.

  • Suggested answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: Batch Job stuck in "Waiting" state

    Hi,

    Check the Batch Group assigned to your process and ensure that it has been added to the Batch AOS (it could be in the Empty group which may not be added to your AOS).

  • Sathish_Chinnappan Profile Picture
    Sathish_Chinnappan 1,305 on at
    RE: Batch Job stuck in "Waiting" state

    Yes its there

  • faiz7049 Profile Picture
    faiz7049 1,641 on at
    RE: Batch Job stuck in "Waiting" state

    Hi Sathish,

    Make sure the domain account which is assigned in Workflow execution account is there.

    regards,

    Faiz

  • Sathish_Chinnappan Profile Picture
    Sathish_Chinnappan 1,305 on at
    RE: Batch Job stuck in "Waiting" state

    Hi,

    Batch job stuck in executing and no progress. did u find any solution on your issue?

  • RE: Batch Job stuck in "Waiting" state

    Hi Samira

    In my case all settings are correct as said by you, but stil batch jobs are in waiting state 

    Please help me further

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

    I'm not sure how it is related, but what worked for me was:

    truncate table SysBreakpoints;
    GO
    truncate table SysBreakpointList;
    GO
    Then Restart AOS
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Batch Job stuck in "Waiting" state

    Make sure Ax Batch Management service is running.

  • Achmad Naro Profile Picture
    Achmad Naro 10 on at
    RE: Batch Job stuck in "Waiting" state

    Thank you Guys. It's work.

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Demystifying Copilot with Sundar Raghavan

Sundar explains how Copilot for Service is meant to function separately...

Business Process Guidance Badges and New…

The Microsoft Success by Design is the framework for implementing Dynamics 365…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,254 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,943 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans