My Oracle Support Banner

Opcode PCM_OP_BAL_CHANGE_VALIDITY Not Synchronizing Validity of Resources (Doc ID 2421728.1)

Last updated on AUGUST 10, 2018

Applies to:

Oracle Communications BRM - Elastic Charging Engine - Version 11.3.0.6.0 and later
Information in this document applies to any platform.

Symptoms

The opcode PCM_OP_BAL_CHANGE_VALIDITY is not syncing validity of resources during pin_cycle_fees invoked inside PCM_OP_GL_POL_PRE_UPDATE_JOURNAL, but when the same is executed from testnap, sync is successful.

Steps to reproduce:
=============

1)  Create customer with product having rollover configured.

2)  Execute pin_bill_accts (including PCM_OP_GL_POL_PRE_UPDATE_JOURNAL policy update to extend validity of rollover bucket to NO_END (PIN_FLD_VALID_TO TSTAMP [0] (0) )).

Below is log snippet of the op_bal_change_validity being called:

D Mon Apr 2 00:00:01 2018 dev cm:26605 fm_bal_change_validity.cpp:84 2:dev:pin_bill_accts:26594:132250480:0:1520428130:0::::
op_bal_change_validity input flist
# number of field entries allocated 20, used 7
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 23608695 0
0 PIN_FLD_SUB_BALANCES ARRAY [0] allocated 20, used 2
1     PIN_FLD_VALID_FROM TSTAMP [0] (1520377200) Wed Mar 7 00:00:00 2018
1     PIN_FLD_VALID_TO TSTAMP [0] (1525125600) Tue May 1 00:00:00 2018
0 PIN_FLD_SUB_BALANCES ARRAY [1] allocated 20, used 2
1     PIN_FLD_VALID_FROM TSTAMP [0] (1520377200) Wed Mar 7 00:00:00 2018
1     PIN_FLD_VALID_TO TSTAMP [0] (0)
0 PIN_FLD_BAL_GRP_OBJ POID [0] 0.0.0.1 /balance_group 23625145 5
0 PIN_FLD_ELEMENT_ID INT [0] 30
0 PIN_FLD_PROGRAM_NAME STR [0] "Rollover Balance Validity"
0 PIN_FLD_RESOURCE_ID INT [0] 1000128

D Mon Apr 2 00:00:01 2018 dev cm:26605 fm_bal_change_validity.cpp:148 2:dev:pin_bill_accts:26594:132250480:0:1520428130:0::::
  op_bal_change_validity return flist
# number of field entries allocated 20, used 2
0 PIN_FLD_DESCR STR [0] "success"
0 PIN_FLD_POID POID [0] 0.0.0.1 /event/billing/sub_bal_validity 310027094684348188 0


3)  Event is published to ECE and can be found in file emGateway1.log.

See below snippet :

<SubBalAudit>
<ResourceId>1000128</ResourceId>
<BalGrpObj>0.0.0.1 /balance_group 23625145 6</BalGrpObj>
<ValidFrom>Wed Mar 07 00:00:00 CET 2018</ValidFrom>
<ValidTo>Thu Jan 01 01:00:00 CET 1970</ValidTo>
<ElementId>30</ElementId>
</SubBalAudit>


 
4)  However, querying ECE Balance cache does not show this update.

        See below snippet:

([BalanceItemImpl balanceItemId = 30} , currentBalance = -20480.000000000000} , balanceItemSpec = BalanceItemSpecImpl{beCode='MB', unit=Occ, creditProfile=CreditProfile{creditFloor=-9223372036854775808, creditCeiling=9223372036854775807, id='2', percentageCreditThresholds=[], fixedCreditThresholds=[]}, consumptionRule=EARLIEST_EXPIRATION_LATEST_START, lastBalanceItemIndex=30} , validity = [2018-03-06T23:00:00Z,2018-04-30T22:00:00Z]} , validityRule = null} , firstUsageCreatedTime = null} , granter = GranterImpl{granterId='23624825'
granterType=PURCHASED_CHARGE
}}]),

 

Note : If opcode op_bal_change_validity is invoked from testnap with same payload, it works ok, that is, the balance update is visible in the ECE Balance cache.

See below snippet:

  ([BalanceItemImpl balanceItemId = 30} , currentBalance = -20480.000000000000} , balanceItemSpec = BalanceItemSpecImpl{beCode='MB', unit=Occ, creditProfile=CreditProfile{creditFloor=-9223372036854775808, creditCeiling=9223372036854775807, id='2', percentageCreditThresholds=[], fixedCreditThresholds=[]}, consumptionRule=NONE, lastBalanceItemIndex=30} , validity = [2018-03-06T23:00:00Z,+292278994-08-17T07:12:55.807Z]} , validityRule = null} , firstUsageCreatedTime = null} , granter = GranterImpl{granterId='23624825'
  granterType=PURCHASED_CHARGE
  }}]),

Changes

 

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!


In this Document
Symptoms
Changes
Cause
Solution
References


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