PCM_OP_SUBSCRIPTION_RERATE_REBILL Fails During Rerating Custom Events (Doc ID 848749.1)

Last updated on JANUARY 27, 2014

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.3.1.0.0 to 7.3.1.0.0 [Release 7.3.1]
Oracle Solaris on SPARC (32-bit)
Sun Solaris SPARC (32-bit)
Checked for relevance on 22-Dec-2011


Symptoms

-- Problem Statement:
op_subscription_rerate_rebill throws error when we are trying to perform rerating on a custom event.


-- Steps To Reproduce:
(1) Create custom event /event/custom with additional fields as below :
0 PIN_FLD_CUSTOM_INFO SUBSTRUCT
1 PIN_FLD_QUANTITY DECIMAL
1 PIN_FLD_VALUE STR

(2) Load all required configurations as below:
Pin_event_map
/service/ip : /event/custom : Custom Event
Pin_usage_map
/event/custom : Custom Event: 0: 0: 0: 0: 0: 0: 0: custom_event
Pin_rum
/event/custom : Custom Event : PIN_FLD_CUSTOM_INFO.PIN_FLD_QUANTITY : none

(3) Create a product that rates above event as usage (use Custom Event as a RUM). Use Rate Plan Selector that checks EVENT.CUSTOM_INFO.VALUE. Sample price plan is attached. 

If above field equal “p” use RATE_PLAN_A : As a scaled amount set 1 $
If above field equal “n” use RATE_PLAN_B : As a scaled amount set to -1 $

(4) 10.Feb 10:00:00 – using Customer Center create account with empty plan, DOM = 1, monthly billing cycle

(5) Purchase the above deal

(6) 15.Feb 10:00:00 – call pcm_op_act_usage to create one custom event with below flist :

#Input Flist
#@opcode=PCM_OP_ACT_USAGE
#@flag=0
0 PIN_FLD_POID POID [0] 0.0.0.1 /dummy -1 0
0 PIN_FLD_OP_CORRELATION_ID STR [0] "XXX:163:1239952758:0"
0 PIN_FLD_PRODUCTS ARRAY [0] allocated 1, used 1
1 PIN_FLD_PRODUCT_OBJ POID [0] 0.0.0.1 /product 617126 0
0 PIN_FLD_EVENT SUBSTRUCT [0] allocated 10, used 10
1 PIN_FLD_POID POID [0] 0.0.0.1 /event/custom -1 0
1 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 644574 11
1 PIN_FLD_DESCR STR [0] "CUSTOM_EVENT"
1 PIN_FLD_END_T TSTAMP [0] (1234479600) 13/02/2009 00:00:00:000 AM
1 PIN_FLD_NAME STR [0] "act_usage"
1 PIN_FLD_PROGRAM_NAME STR [0] "act_usage"
1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 645694 8
1 PIN_FLD_START_T TSTAMP [0] (1234479600) 13/02/2009 00:00:00:000 AM
1 PIN_FLD_SYS_DESCR STR [0] "act_usage"
1 PIN_FLD_CUSTOM_INFO SUBSTRUCT [0] allocated 2, used 2
2 PIN_FLD_QUANTITY DECIMAL [0] 21,5
2 PIN_FLD_VALUE STR [0] "p"


7) 20.Feb 10:00:00 – call op_subscription_rerate_rebill with below flist, opcode fails

#Input Flist
#@opcode=PCM_OP_SUBSCRIPTION_RERATE_REBILL
#@flag=0
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 644574 15
0 PIN_FLD_EVENT_TYPE STR [0] "/event/custom"
0 PIN_FLD_FLAGS INT [0] 2
0 PIN_FLD_OP_CORRELATION_ID STR [0] "XXX:96:1239883111:0"
0 PIN_FLD_PROGRAM_NAME STR [0] "rerate_rebill"
0 PIN_FLD_RERATE_FLAGS INT [0] 1
0 PIN_FLD_START_T TSTAMP [0] (1234220400) 10/02/2009 00:00:00:000 AM
0 PIN_FLD_ARGS ARRAY [2042834] allocated 1, used 1
1 PIN_FLD_PRODUCT_OBJ POID [0] 0.0.0.1 /product 617126 0

Error in cm pinlog as below :

D Fri Feb 20 10:00:21 2009 my_server cm:8693 fm_subscription_rerate_rebill.c:2995 1:TEST:UnknownProgramName:0:AWT-EventQueue-0:96:1239892551:0
fm_subs_rb_event_has_zero_bal_impact, inside loop: sbi_flistp
NULL flist ptr
D Fri Feb 20 10:00:21 2009 my_server cm:8693 fm_subscription_rerate_rebill.c:3135 1:TEST:UnknownProgramName:0:AWT-EventQueue-0:96:1239892551:0
fm_subs_rb_get_matching_bal_impact error
<location=PIN_ERRLOC_FLIST:6 class=PIN_ERRCLASS_SYSTEM_DETERMINATE:1 errno=PIN_ERR_NOT_FOUND:3>
<field num=PIN_FLD_PRODUCT_OBJ:7,244 recid=0 reserved=0 reserved2=0 time(sec:usec)=0:0>
<facility=0 msg_id=0 version=0>
D Fri Feb 20 10:00:21 2009 my_server cm:8693 fm_subscription_rerate_rebill.c:2995 1:TEST:UnknownProgramName:0:AWT-EventQueue-0:96:1239892551:0
fm_subs_rb_event_has_zero_bal_impact, inside loop: sbi_flistp
NULL flist ptr

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