My Oracle Support Banner

Sharing Group Opcode Does Not Support Pin_elemid_assign (Doc ID 788433.1)

Last updated on SEPTEMBER 26, 2018

Applies to:

Oracle Communications Billing and Revenue Management - Version and later
Information in this document applies to any platform.


The opcode PCM_OP_SUBSCRIPTION_SHARING_GROUP_MODIFY errors out if one sends in a PIN_FLD_MEMBERS array with element IDs set to PIN_ELEMID_ASSIGN. This seems to imply that any code (client or FM) that wants to add new members to the sharing group must do the following to ensure data integrity:

(1) Lock the account that owns the sharing group to ensure that multiple requestors are not using the same group member elements to add new members.
(2) Read the entire member list of the group object and walk it in the custom code to find the maximum element ID in the members list.
(3) Call the MODIFY opcode to add members, starting with the next higher element ID for the first member to add.

Is there a better way to determine the maximum element ID without doing a READ_FLDS of the entire member array? Why is PIN_ELEMID_ASSIGN not supported since that would be much more efficient from a client code standpoint?

Steps To Reproduce

(1) Create discount sharing group owned by account A.
(2) Attempt to account account B to discount sharing group with PIN_FLD_MEMBERS element PIN_ELEMID_ASSIGN ('[assign]" in testnap).


nap(23166)> d 1
# number of field entries allocated 20, used 3
0 PIN_FLD_POID POID [0] /account 562058 0
0 PIN_FLD_MEMBERS ARRAY [*] allocated 20, used 2
1 PIN_FLD_SERVICE_OBJ POID [0] /service/telco/gsm/telephony 589598 10
1 PIN_FLD_ACCOUNT_OBJ POID [0] /account 586270 0
0 PIN_FLD_GROUP_OBJ POID [0] /group/sharing/discounts 583485 4
nap(23166)> xop 3758 0 1
xop: opcode 3758, flags 0
XOP "3758" failed: err 28:PIN_ERR_INVALID_RECORD_ID, field 0/119:PIN_FLD_MEMBERS,
loc 4:PIN_ERRLOC_DM, errclass 0:UNKNOWN, rec_id 0, resvd 0
# number of field entries allocated 20, used 2
0 PIN_FLD_POID POID [0] /account 562058 0
<field num=PIN_FLD_MEMBERS:9,119 recid=0 reserved=0 reserved2=0 time(sec:usec)=0:0>
<facility=0 msg_id=0 version=0>




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

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