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)

How to cancel executing batch job in AX 2009?

(0) ShareShare
ReportReport
Posted on by

I have an orphan batch job executing and cannot figure out how to kill it.  Any suggestions?

*This post is locked for comments

I have the same question (0)
  • spot Profile Picture
    2,515 on at

    Hi, go to basic module in inquires select batch jobs and delete the respective batch job.

     

    Regards

  • Ty Hollander Profile Picture
    180 on at

    Tried that, but I get an Infolog stating

    "Error Message (07:55:44 am) Cannot delete Batch job in the Executing or Cancelling state
    Error Message (07:55:44 am) Cannot delete a record in Batch Job (BatchJob).
    The corresponding AOS validation failed."
  • Verified answer
    Arun Keerthy Profile Picture
    360 on at

    Goto Basic -> Batch Job

    Select the particular Job and Select the Functions -> Change Status

    Select the Cancelling.

    Once Job is cancelled (Confirm by Batch Job History in status field. It will take some time to Cancel)

    Again goto Functions -> Change Status

    Select withhold

    And then you can delete the job.

  • Community Member Profile Picture
    on at

    Change status button is disabled on jobs in executing state

  • Tim Andaya Profile Picture
    670 on at

    I have the same problem in the Contoso database; can't run the CU7 update jobs becuse of a posting that is executing somewhere on the Microsoft campus two years ago.

    Can't delete it, can't change the status, can't do anything to it.

  • Suggested answer
    Tim Andaya Profile Picture
    670 on at

    Try this in the MicrosoftDynamicsAX database What you could try, since this is your sandbox/playground AOS (afaik), is to stop the AOS, head over to the DB and update the table Batch by running this query;

    UPDATE BATCH SET STATUS = 0 WHERE STATUS > 6,

    then BatchJob with  

    UPDATE BATCHJOB SET STATUS = 0 WHERE STATUS > 6.

    Then start the AOS and continue from there. There could be something wrong with the jobs themself. You should also just open the table browser (or SQL Query the tables) and see if the AOSID is correct for the jobs in question.

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