PCM_OP_PRICE_SET_PRICE_LIST Has Not Returned An Error When Mandatory Field Is Not Present (Doc ID 1523493.1)

Last updated on AUGUST 24, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.4.0.0.0 to 7.5.0.0.0 [Release 7.4.0 to 7.5.0]
Linux x86-64
***Checked for relevance on 21-Oct-2014***
***Checked for relevance on 26-May-2016***

Symptoms

Issue:
PCM_OP_PRICE_SET_PRICE_LIST has not returned an error when mandatory field "PIN_FLD_EVENT_TYPE" is not present.
While executing PCM_OP_PRICE_SET_PRICE_LIST opcode with PIN_FLD_SPONSORSHIPS details in the input without the mandatory field PIN_FLD_EVENT_TYPE in the input flist, opcode is not returning any error.

Steps:
-------
1. Create a charge share model
2. Call PCM_OP_PRICE_SET_PRICE_LIST opcode from testnap with the below input flist

0 PIN_FLD_POID POID [0] 0.0.0.1 /service/admin_client 2 0
0 PIN_FLD_SPONSORSHIPS ARRAY [1] allocated 20, used 3
1     PIN_FLD_NAME STR [0] "chargeshare_test"
1     PIN_FLD_DESCR STR [0] "chargeshare_test"
1     PIN_FLD_USAGE_MAP ARRAY [1] allocated 20, used 1
2         PIN_FLD_DISCOUNT_MODEL STR [0] "CSMLINT"
0 PIN_FLD_PROGRAM_NAME STR [0] "AIA"


As per the documentation of PCM_OP_PRICE_SET_PRICE_LIST opcode, PIN_FLD_SPONSORSHIPS ->PIN_FLD_USAGE_MAP -> PIN_FLD_EVENT_MAP field is mandatory.
So if we don't send PIN_FLD_EVENT_MAP in the input flist, we expect PCM_OP_PRICE_SET_PRICE_LIST opcode should return an error. But in this case, opcode is not returning any error; however the output flist of the opcode has PIN_FLD_DESCR field where it says the message 'Missing event type'.

Below is the output flist we got in this scenario:-


Even though PIN_FLD_RESULT and PIN_FLD_DESCR show there is a validation failed, the opcode is not returning an error which is not the case for any other missing mandatory fields in the input flist.

For e.g., when mandatory field PIN_FLD_NAME is missing under PIN_FLD_SPONSORSHIPS array, PCM_OP_PRICE_SET_PRICE_LIST opcode returns the error. But when PIN_FLD_EVENT_MAP field is missing, opcode doesn't return any error even though there is a validation failed.

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