Person Does Not Retain StateId When GetEntity() Is Performed

(Doc ID 2042428.1)

Last updated on JULY 24, 2017

Applies to:

Oracle Utilities SDK - Version 4.2.0.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 4.2.0.0.0 version, System Wide

ACTUAL BEHAVIOR
---------------
Person does not retain StateId when getEntity() is performed

The situation revolves around a person who has Country_CD but no State is associated with it, for example, GB(Great Britain);
The person object, and the DTO does not retain the StateId, therefore, whenever you try to update without resetting the StateId, it will throw a null pointer exception.

EXPECTED BEHAVIOR
-----------------------
The person object should be able to retain the StateID so that no error occurs

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
In Custom Code:

Person_Id person_id = new Person_Id("0123456790");
Person person = person_id.getEntity();
Person_DTO personDTO = person.getDTO();
person.setDTO(PersonDTO);

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot update the person object

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