AddItem In eConfigurator Script Fails when Two Products With Different Organizations and Same Name Present (Doc ID 2199624.1)

Last updated on FEBRUARY 01, 2017

Applies to:

Siebel CRM - Version 15.0 [IP2015] and later
Information in this document applies to any platform.

Symptoms

On : 15.8 version, Siebel Product COnfigurator

eConfigurator script giving following error while trying to add child item in case of Multiple products with same name and different organizations.

Complex Object Instance Service Internal Error : GetProperty failed.
Property Prod Item Id cannot be empty.

ERROR
-----------------------

Complex Object Instance Service Internal Error : GetProperty failed.
Property Prod Item Id cannot be empty.

STEPS
-----------------------
The issue can be reproduced at will with the following steps:

Created 2 Child products(Child 1 and Child 2 with Default Organization) and released both the products
Create one more Product with same name(Child 2) with different organization and release it
Create customizable product(Root) with 2 child Products with default cardinality blank
Root
|
|--> Child 1
|
|--> Child 2 with other than default organization

write following script under Root Product

Script Name :: Cfg_ChildItemChanged
Program Language : eScript
Root Product : Root

Write following script in Script Definition :-

function Cfg_ChildItemChanged (ChangedItem)
{

var nCnt = ChangedItem.GetChildCount();
var n = 0;
for(n = 0; n < nCnt; n++)
{
var psItem = ChangedItem.GetChild(n);
if(psItem.GetProperty("ObjName") == "Child 1")
{
AddItem("$.[Root]#1","Child 2","Child 2",1);
}

}
}

Validate the Root Product and select Child 1 and Add it

It gives following error message

Complex Object Instance Service Internal Error: GetProperty failed.
Property Prod Item Id cannot be empty.

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