My Oracle Support Banner

PRIME REST API Creating Duplicate Code Values In A Hierarchy (Doc ID 2434016.1)

Last updated on AUGUST 10, 2018

Applies to:

Oracle Prime Cloud Service - Version 18.7 to 18.7 [Release 18.7]
Information in this document applies to any platform.

Symptoms

On : 18.7 version, Cloud: Administration

ACTUAL BEHAVIOR
---------------
Creating values in the REST API created duplicate values

EXPECTED BEHAVIOR
-----------------------
When creating a duplicate code value it should return with an 'ID must be unique. (PRM-006000001)" error

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Log into Prime Projects
2. Go to a Workspace
3. Go to Summaries and Settings > Dictionaries > Codes
4. Create a code called 'api'
5. Create 2 child values called 'a' and 'b'
6. Select the gear icon next to 'b' then select 'Move Right'
7. Using curl extract the codetypeId from the newly created code
 - primeapi/restapi/codeType/byItemCode?workspaceCode=&codeTypeCode=api
8. Run the following via cURL endpoint to update the code values - curl -u : -H "Content-Type:application/json" -X POST -d "@codetype.json" https:///primeapi/restapi/codeType/
 - /primeapi/restapi/codeValue/
- Create the codetype.json file as below
{
"codeTypeId":" "codeValueName":"b",
"codeValueCode":"b"
}
9. Go to Summaries and Settings > Dictionaries > Codes
10. Notice there are two 'b' values present now.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, Prime allows for duplicate code values when it should not.

 

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!


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