Skip to main content

Notifications

Dynamics 365 Community / Forums / Human Resources forum / Leave Request Failed s...
Human Resources forum
Suggested answer

Leave Request Failed status

Posted on by 103

Hi,

I have users assigned to an annually accrued Leave Plan for April 2020 - March 2021.  Two users have been testing this and have successfully submitted requests for this and next year.  However, now when they submit further requests, the workflow completes successfully but the request fails, (Status - Failed).  The Message log reads "The leave request can't exceed one day for 9/15/2020").  

Can anyone suggest what the problem is here as they both have leave balances that they should be able to take before March next year.

Thanks

  • Suggested answer
    Mancini Magic Profile Picture
    Mancini Magic 103 on at
    RE: Leave Request Failed status

    Hi,

    Thanks to those who had a look at the issue with the leave request failing.  I eventually found the problem which was due to the days leave being requested having already been booked as sick leave.  The user wasn't prevented from requesting the days leave because they don't have access to the sick leave plan.  

  • Mancini Magic Profile Picture
    Mancini Magic 103 on at
    RE: Leave Request Failed status

    Leave Plan:

    pastedimage1598626618152v1.png

    Time Off Requests:

    pastedimage1598626772188v3.png

    Message Log:

    pastedimage1598626819771v4.png

  • Mancini Magic Profile Picture
    Mancini Magic 103 on at
    RE: Leave Request Failed status

    Hi Michal,

    I have tested this again with the same issue but I cannot see what the cause of the fail is.  Here are the steps taken:

    1. Created new Leave Plan: Start Date 01/04/19; Accrual annually based on Plan Start Date; accrual award on period start date and accrual prorated.

    2. Assigned user from 01/04/20 and ran accrual from 01/04/20.  User awarded 34 days leave, as expected

    3. User requested 12 days leave, (14/12/20 - 31/12/20) which successfully went through the workflow but was rejected by the manager.  The time off request gained a status of Denied, as expected

    4. The user requests 3 days, (21/09/20 - 23/09/20) the workflow runs again and the manager approves.  The status on the time off request briefly updates to 'Approved' and then changes to 'Failed'.  the Message Log shows The leave request can't exceed one day for 9/21/2020.

    Another user also assigned the same leave plan has successfully requested 2 days leave, (02/09/20 - 03/09/20) and the request staus is Completed, as expected and the leave balances updated.

    Many thanks for getting back to me

  • RE: Leave Request Failed status

    Hi Mancini,

    Could you please share more details about setup ?

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,129 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans