HR_PERSON_ABSENCE_API.CREATE_PERSON_ABSENCE Error
I am using seeded Oracle API for creating absences. But I am getting an error
Error report:
ORA-20001: The primary key specified is invalid
Cause: The primary key values specified are invalid and do not exist in the schema.
Action: Check the primary key values before attempting to carry out the operation again.
ORA-06512: at "APPS.HR_PERSON_ABSENCE_API", line 881
ORA-06512: at line 19
Please find below code which I am using to create the absences
SET serveroutput ON
SET verify OFF
SET feedback OFF
DECLARE
L_ABSENCE_DAYS NUMBER:= 5;
L_ABSENCE_HOURS NUMBER:= 0;
L_ABSENCE_ATTENDANCE_ID NUMBER;