Hi all,
In AX server, I was trying to run 'Workflow infrastructure configuration wizard' (from Administration -> Setup).
I successfully validate Workflow runtime URL and proceeed for selecting batch group. When I click on 'Finish' button, I get following error infolog:
Error executing code: BatchHeader object not initialized.
Fatal RunAs error.
Any idea what may be cause of this?
*This post is locked for comments
I have the same question (0)This is caused by some errant data left over in Tables\Batch. The code causing the issue is Classes\WorkflowSetupWizard\New, specifically below:
select firstonly batch where batch.ClassNumber == classnum(SysWorkflowMessageQueueManager);
if (batch.RecId)
The issue is, that "IF" statement is returning a true value because the data in Tables\Batch. Delete the Workflow record in Tables\Batch, then re-run the wizard and you should be good.