ORA-20001: A non-Primary Address cannot exist without a corresponding Primary Address when Using API (Doc ID 1947213.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

On : 12.1.3 version, Application Programming Interface

When attempting to end date an existing primary address in order to create a new one starting the next day when the employee also has a second - non primary - address, using HR_PERSON_ADDRESS_API.CREATE_PERSON_ADDRESS
the following error occurs.

ERROR
-----------------------
ORA-20001: A non-Primary Address cannot exist without a corresponding Primary Address.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run API HR_PERSON_ADDRESS_API.CREATE_PERSON_ADDRESS

Not reproducible on PUI screen.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms