My Oracle Support Banner

HR_PERSON_ABSENCE_API.CREATE_PERSON_ABSENCE API Fails With Error 'ORA-20001-The primary key specified is invalid' (Doc ID 3035924.1)

Last updated on JULY 23, 2024

Applies to:

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

Symptoms


Getting below error message while executing hr_person_absence_api.create_person_absence API to create absence records.

ERROR
-----------------------
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 1002
ORA-06512: at line 19


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

1.Login to database.

2.Execute hr_person_absence_api.create_person_absence API.

3. Check the output for error details.

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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