Deleting BatchJobs

Hi All,

How to delete Batch jobs.when i try to delete BatchJobs (Basic–>Inquires–>Batch Job).The below error comes.the jobs are canceling

errors:

Cannot delete Batch job in the Executing or Cancelling state.

Cannot delete a record in Batch Job (BatchJob).
The corresponding AOS validation failed.

Kishor

Wait for the batch status of ‘Wating’, then try deleting it. you cant delete batch job in ‘Executing status’.

open Ms SQL Server,look up the BATCHJOB and BATCHJOBHISTORY tables in your database,look up the rows corresponding to your batch job refusing to delete in AX,and delete it,that should work

You can alsoopen SQL and change the Status of that specific job to Zero(0) in the batchjob table of your database

When the job is in the status Waiting, press the button Functions → Change status and select the status “withHold”. Then, you can delete it.

If the job is all the time running, identify the batch group that runs the job, open the form Administration → batch groups and remove the batch group from the job server. Then wait until the job changes the status to Waiting and perform the steps that I wrote before.