Skip to main content

Notifications

Dynamics 365 Community / Forums / Human Resources forum / Leave and absence type...
Human Resources forum
Unanswered

Leave and absence type cannot be deleted while dependent Leave and absence request detail exist. Delete dependent Leave and absence request detail and try again.

Posted on by 281

Hi, 

I want to delete a leave type that I created. When I try to delete the leave I get this "Leave and absence type cannot be deleted while dependent Leave and absence request detail exist. Delete dependent Leave and absence request detail and try again."

Originally I went into power app and delated the record. and that didnt work. I then went into the leave request details excel page and went to delete the record but this error comes up:

Delete failed for table row of type 'EssLeaveRequestAssignedDetailEntity'. Infolog: Warning: Time off request detail cannot be deleted as the request is in Denied state.; Warning: The entity record could not be deleted because validation failed for the following data source: LeaveRequestDetail (LeaveRequestDetail).'

What do I do from here?

Thanks,

HS

  • Henry G Smith Profile Picture
    Henry G Smith 281 on at
    RE: Leave and absence type cannot be deleted while dependent Leave and absence request detail exist. Delete dependent Leave and absence request detail and try again.

    Hi Adbul,

    I just tried to cancel the workflow and I get a response that says "workflowtable context table ID reference. 13 is not valid.

  • abdultp Profile Picture
    abdultp 865 on at
    RE: Leave and absence type cannot be deleted while dependent Leave and absence request detail exist. Delete dependent Leave and absence request detail and try again.

    Hi,

    Did you submit the request to workflow as it says 'the request is in denied state'? If yes, then cancel the workflow and try to delete the request again.

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans