Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Workflow batch jobs stuck in executing state

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
    Gunjan Bhattachayya 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
    Michael Antony 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
    Gunjan Bhattachayya 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans