web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX Workflow - Error executing code: BatchHeader object not initialized.

(0) ShareShare
ReportReport
Posted on by 1,675

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)
  • Suggested answer
    Alex Kwitny Profile Picture
    395 on at
    Re: AX Workflow - Error executing code: BatchHeader object not initialized.

    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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans