Encounter "ORA-20001: A position with this name already exists. Enter a new name." error while calling "HR_POSITION_API.CREATE_POSITION" API
(Doc ID 2902333.1)
Last updated on OCTOBER 12, 2022
Applies to:
Oracle Human Resources - Version 12.2 HRMS RUP11 and laterInformation in this document applies to any platform.
Symptoms
When trying to call the Position API, following error appears
ERROR
Error report -
ORA-20001: A position with this name already exists. Enter a new name.
ORA-06512: at "APPS.HR_POSITION_API", line 602
ORA-06512: at "APPS.HR_POSITION_API", line 2981
ORA-06512: at "APPS.HR_UTILITY", line 970
ORA-06512: at "APPS.HR_PSF_BUS", line 1391
ORA-06512: at "APPS.HR_PSF_BUS", line 6538
ORA-06512: at "APPS.HR_PSF_INS", line 906
ORA-06512: at "APPS.HR_PSF_INS", line 1271
ORA-06512: at "APPS.HR_POSITION_API", line 2541
ORA-06512: at "APPS.HR_POSITION_API", line 448
ORA-06512: at line 25
ORA-06512: at line 2
ORA-20001: A position with this name already exists. Enter a new name.
ORA-06512: at "APPS.HR_POSITION_API", line 602
ORA-06512: at "APPS.HR_POSITION_API", line 2981
ORA-06512: at "APPS.HR_UTILITY", line 970
ORA-06512: at "APPS.HR_PSF_BUS", line 1391
ORA-06512: at "APPS.HR_PSF_BUS", line 6538
ORA-06512: at "APPS.HR_PSF_INS", line 906
ORA-06512: at "APPS.HR_PSF_INS", line 1271
ORA-06512: at "APPS.HR_POSITION_API", line 2541
ORA-06512: at "APPS.HR_POSITION_API", line 448
ORA-06512: at line 25
ORA-06512: at line 2
STEPS
The issue can be reproduced at will with the following steps:
1. Login to database using SQL Developer or Toad.
2. Execute the script to create position using the API "HR_POSITION_API.CREATE_POSITION"
3. Encounter the above error
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 |
Cause |
Solution |
References |