My Oracle Support Banner

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 AUGUST 28, 2023

Applies to:

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


When trying to call the Position API, following error appears


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


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


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.