My Oracle Support Banner

Error 'ORA-20001': When HR_Person_Api.Update_Person Tries To Update Original Date Of Hire (Doc ID 1317124.1)

Last updated on OCTOBER 12, 2021

Applies to:

Oracle Human Resources - Version 12.1.3 and later
Information in this document applies to any platform.


When attempting to update Original date of hire for CWK who is an Ex-Employee using the hr_person_api.update_person, the following error occurs.

'ORA-20001: You must enter an original date of hire which is the same or earlier than the start date.'

Steps to Reproduce:
The issue can be reproduced at will with the following steps:

1. For example, pick an employee with start date 31-JAN-2011 and Original Date of hire 31-JAN-2011

2. Term the employee as of 15-FEB-2011. The person type changes to Ex-employee.

3. Create placement for the person as of 01-MAR-2011. The Original Date of Hire would still be 31-JAN-2011.

4. Use the api hr_person_api.update_person to set the Original Date of hire to 01-MAR-2011, it throws the error message

Note: Updating the Original Date of Hire for Contingent Worker.Ex-employee works fine in application.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.