API to migrate Ex-employees and contractors
Hi,
We are migrating HR data into R12.2.4
We have a requirement to migrate ex-employees and ex-contractors. These are identified by System Person Types EX_EMP and EX_CWK.
After determining the PERSON_TYPE_ID from PER_PERSON_TYPES for SYSTEM_PERSON_TYPE='EX_EMP' I am passing this value to the parameter p_person_type_id of hr_employee_api.create_gb_employee (along with other mandatory parameter values).
I am getting an error :
RA-20001: A person type with a system person type EMP must be specified.
ORA-06512: at "APPS.HR_EMPLOYEE_API", line 1034
ORA-06512: at "APPS.HR_EMPLOYEE_API", line 1544