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
- Change the status of the batch job to Canceling.
- 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
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.