Dynamics AX 2012 R3 Batch Job (Executing, Withhold)

When we restore database in dynamics AX 2012 we usually face an issue of workflow batch job. And we use worflow processor to manually run the worflow batch job.

I tried to fix this with the help of some post. But unfortunately it was an unsuccessful attempt. Than I tried to delete the batch job. I was getting error like

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

Steps to be followed to fix this issue.

if workflow status is Executing

  1. Change the status of the batch job to Canceling.
  2. Again change the status of the batch job to Withhold

if workflow status is  Withhold

3. Delete the batch job

4. Create a batch group called “Workflow”

5. Run the batch group through workflow configuration from

System Administrator  >> Setup >> Workflow >> Workflow Infrastructure Configuration

Screen Shot 2016-07-27 at 12.32.24 PM

Screen Shot 2016-07-27 at 12.33.21 PM

select the batch job and click on next set the batch timing and at the end click finish.

Try to submit any workflow. It will work smoothly now.

Thanks.

Prashant Kumar

Leave a comment