Skip to main content

Notifications

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

Termination - error with valid dates

Posted on by 126

Hello, community,

where should I check the valid dates for termination? 

What dates is the system checking when I want to terminate the worker?

pastedimage1670244857598v1.png

Is there any way how to debug the messages? How get more information from the messages?

  • Mantas Sedys Profile Picture
    Mantas Sedys 126 on at
    RE: Termination - error with valid dates

    The result is the same.

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Termination - error with valid dates

    Hi,

    please give it a try.

  • Mantas Sedys Profile Picture
    Mantas Sedys 126 on at
    RE: Termination - error with valid dates

    Hi Parag Chapre ,

    the termination date is greater than the employment start date (employment start date 2021-01-04 00:00:00)

    The employment end date is not set. Do I need to set the employment end date first, and then initiate Terminate operation?

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Termination - error with valid dates

    Hi Mantas,

    What is the employment start date and end date for this worker?

    Also, make sure the termination date is greater than the employment start date.

  • Suggested answer
    MRickards Profile Picture
    MRickards 115 on at
    RE: Termination - error with valid dates

    I looked some more into this, and it looks like it needs to be debugged. Please see this post below with the same issue.

    community.dynamics.com/.../stack-trace-invalid-range-is-specified-in-validtimestate-date1-is-greater-than-date2

  • Mantas Sedys Profile Picture
    Mantas Sedys 126 on at
    RE: Termination - error with valid dates

    Hi   ,

    just tried your hypothesis and get the result:

    because we're using the personnel actions, after I want to complete the actions, I get the same error.
    pastedimage1670319077508v1.png
    pastedimage1670319118592v2.png
    I don't get it, maybe there are some dates with the employee card? All employees were uploaded with Data management.

  • Suggested answer
    MRickards Profile Picture
    MRickards 115 on at
    RE: Termination - error with valid dates

    Hello Mantas,

    You should be able to choose the same dates here as typically these are indeed the same dates, what about trying to change the times so they are not equal? Maybe changing the time of Last day worked to when the employee's shift ended and then making the termination time right after their shift was over? Example 4PM last day worked, termination time 5PM same day. That way it is still the same day, but the time being different and changed may fix this error.

    Hope this helps!

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