Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Workflow Stopped working

Posted on by Microsoft Employee

Dear Experts,

Our worklfows been working fine since early `go live` and didn't had any issues. Last Thursday out of a sudden it stopped working in all environments. Problems we are having with Purchase Order/Requisitions workflows. While submitting for approval it stucks in status `` in review``. We have re-booted AX/AD servers and it didn't help. We haven't done any changes in worklfows. Any ideas what could possibly go wrong? Any suggestions are welcome

 

V

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow Stopped working

    I have exactly the same problem after deleting a user from AD, who, happen to own a batch item. To solve, we have remove the batch own by that person and set again later.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow Stopped working

    Hello,

    Thank you  for all your replies. One of the users that had workflow signed to it have been removed from Active Directory and we do believe this was one of the reasons why our workflow stopped working. To solve the problem we had to re-activate some of the inbound ports in system administration that are related to workflow/user session services and cancel all ``waiting`` batch jobs. After all the configuration - batch jobs restarted and workflow was running normal again.

    Hope that helps

    V

  • Suggested answer
    guk1964 Profile Picture
    guk1964 10,877 on at
    RE: Workflow Stopped working

    Check the workflow history form to see whether the instance is in an error state. Maybe the approver does not have the appropriate access rights in AX

    A common cause if that the default batch frequency is 1 min which is typically too short and there is a risk that a new work flow tries to start before the previous one completes as more users and more companies are introduced.  Old uncompleted/abandoned works orders will also impact the batch process. Particularly if you have  a test company in the production environment because the batch runs across all companies)  So,  if this is not already done set this to something more reasonable like 5 min.  If you have many users and many processes then  a dedicated aot for batches maybe worth while.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Workflow Stopped working

    You need to go to SQL management studio select your DB and run "All blocking transactions" report. Probably there is dead lock in DB so you will have to kick this session

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow Stopped working

    Hi Prashant,

    I just checked the batch job history and one of the jobs stuck on status ``executing`` last Thursday. I don't see any other error messages there.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Workflow Stopped working

    Did you check workflow batch job ?

  • Suggested answer
    Prashant Singh Profile Picture
    Prashant Singh 8,797 on at
    RE: Workflow Stopped working

    Dear Viz,

    I will suggest please check the workflow batch Job.

    1. Workflow Message Processing Batch Job is working or not?

    2. Also check the workflow history if there is some error or something.

    Regards,

    Prashant Kumar

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans