Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Need Help! Leave workflow not working after approval

Posted on by 281

Hi everyone, 

I have set up a workflow for leave that when an employee applies for time off, it gets sent to their manager for approval. This request is being sent through teams, and the manager accepts the request, but the workflow is not moving to the next stage. 

It just says the assigned person is still pending. 

The workflow has worked in the past.....so it is not the workflow being incorrect.

Would appreciate some guidance on this one!

Thank you,

Henry

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Need Help! Leave workflow not working after approval

    Great to hear Andy!

    Batch jobs can be weird at times! I had a similar problem a few months ago as well.

    Good to know everything has been resolved though.

  • Suggested answer
    AndyKHayward Profile Picture
    AndyKHayward 20 on at
    RE: Need Help! Leave workflow not working after approval

    Just wanted to report that we have resolved the issue.

    I was pretty sure it was a batch job that had stopped working and so searched the batch jobs for the text containing workflow and found one that had ended on Dec 19th which was the last time we had a successful event.  I changed the status of this to waiting and it restarted immediately and started clearing the pending queue of holiday approvals.

    We got there in the end and learnt a bit about the underlying system setup.  Would be useful to know what the batch jobs do as a reference somewhere.

    regards,

    Andy

  • AndyKHayward Profile Picture
    AndyKHayward 20 on at
    RE: Need Help! Leave workflow not working after approval

    No.

    I've done some digging and the task seems to start but not go to step 2.  No email notification is sent, no Teams notification is sent.  The manager can see the request but not approve/decline.

    I've checked the batch queue and cant see anything obviously not working but dont really know what I am looking for!

    Andy

  • Simon Barrett Profile Picture
    Simon Barrett 287 on at
    RE: Need Help! Leave workflow not working after approval

    When the approver clicked approve in Teams, did they receive a confirmation notification that they had approved the request?

    Unfortunately, the Teams add-in is a bit buggy and sometimes the approval does not register correctly in the HR app.

  • AndyKHayward Profile Picture
    AndyKHayward 20 on at
    RE: Need Help! Leave workflow not working after approval

    Hi,

    I have checked the batch jobs and did stop the workflow one (which looked like it was stuck and hadn't run since mid December about the time the last successful run took place).

    However, it doesn't seem to have changed anything.  

    The batch job - business events is running.

    I can see there are absences to approve in my self-service section with a status of submitted but I am unable to approve or reject them.  If we can get this bit working then I would work on the Teams aspect and email alert.

    Andy

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Need Help! Leave workflow not working after approval

    Hi AndyKHayward ,

    Make sure you check the batch jobs.

    My problem was fixed by going into the individual's teams app, signing out, uninstalling, reinstalling the app, reassigning the leave request to myself, and then back to the original manager.

    It was very annoying as I had to do this manually for many team members.

    Let me know if this works.

  • AndyKHayward Profile Picture
    AndyKHayward 20 on at
    RE: Need Help! Leave workflow not working after approval

    I am having the same issue.

    In my case - I am also using D365 HR stand-alone.  We have been live for 2 years and this has been working.

    It looks like Dec 19th the workflow stopped running.  Everything is showing as a pending status.

    The users submit holiday but it doesn't trigger the workflow properly - the line manage doesn't get an email or Teams alert and cant approve or reject the holiday in the self-service even though the task is there.

    We haven't changed anything that I am aware of so I wonder if there was an upgrade that took place at this time.

    regards,

    Andy

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Need Help! Leave workflow not working after approval

    Has anyone else had this problem before?

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Need Help! Leave workflow not working after approval

    Hi Parag,

    Thank you for your help yesterday.

    I monitored it throughout the day and noticed that a few more leave approvals worked fine as the business events system batch job was executing, and the workflow seemed to move to the next stage with no troubles.

    However, this morning it's presenting with the same problems as yesterday. A manager has approved leave, and I've seen the business events system batch job execute and then checked on that approval done by the manager yesterday, and it still hasn't budged.

    I might raise a ticket with Microsoft to get their thoughts.

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Need Help! Leave workflow not working after approval

    Hi Henry,

    Can you please check the batch job - Business Events system?

    As per MS, this should be in waiting or execution state.

    If the issue persists, check the status of the Business Events system batch job as a system administrator. If it's in a Waiting or Executing stage, check again in a few minutes. If the status remains unchanged, log a support ticket so that our team can help fix the issue.

    learn.microsoft.com/.../hr-teams-leave-app

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans