PCM_OP_PRICE_SET_PRICE_LIST Has Not Returned An Error When Mandatory Field Is Not Present
Last updated on SEPTEMBER 21, 2017
Applies to:Oracle Communications Billing and Revenue Management - Version 126.96.36.199.0 to 188.8.131.52.0 [Release 7.4.0 to 7.5.0]
***Checked for relevance on 21-Oct-2014***
***Checked for relevance on 26-May-2016***
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.
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_SPONSORSHIPS ARRAY  allocated 20, used 3
1 PIN_FLD_NAME STR  "chargeshare_test"
1 PIN_FLD_DESCR STR  "chargeshare_test"
1 PIN_FLD_USAGE_MAP ARRAY  allocated 20, used 1
2 PIN_FLD_DISCOUNT_MODEL STR  "CSMLINT"
0 PIN_FLD_PROGRAM_NAME STR  "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.
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