Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Workflow batch jobs stuck in executing state

(0) ShareShare
ReportReport
Posted on by 314

Hi expert,

I have a workflow in AX 2012 that does not working properly. By looking at the document workflow history, the approval just stopped in the workflow activated state.
pastedimage1649731229924v4.png

Normally, in the tracking details.. it's supposed to be start the approval step.

pastedimage1649731350737v5.png

When I check in the batch jobs, the workflow job stuck in executing state.

pastedimage1649731504316v6.png

When I look further into the Batch Jobs submenu > View Tasks, I suspect this problem comes from the AOS instance name that seems to be not matched with the one in the Server Configuration. (and the one in the View Task is not editable, and I don't know where to change that).
*I am trying to move to a new server, that's why it's given a new AOS Instance name

pastedimage1649732395649v1.png

So.. how can I resolve this situation? What do you think of my prejudice, is it the same with what you think the problem is?

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Workflow batch jobs stuck in executing state

    Did you restart the AOS service and check if the batch job changes status form "Executing" to "Waiting"?

    Another quick fix you could try is to go to AOT > Forms and open the form Tutorial_WorkflowProcessor. Right click and open the form, click on Start

    pastedimage1649757353924v1.png

    This will clear up your Workflow queue. Post this, you could delete the batch jobs for workflow and add them again from Workflow infrastructure configuration (under System administration > Setup > Workflow). 

  • Michael Antony Profile Picture
    314 on at
    RE: Workflow batch jobs stuck in executing state

    Hi Gunjan,

    Yes I have attach current AOS server in the setup Batch Group

    pastedimage1649757024527v1.png

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Workflow batch jobs stuck in executing state

    Hi Michael,

    Have you check the Batch group "WF" (under System administration > Setup) and checked the server attached to this batch group? You can select the current AOS server in this setup and restart the AOS service. Please try these steps and check if that resolves your issue.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans