My Oracle Support Banner

WriteRecord Event Is Being Executed Incorrectly (Doc ID 2414277.1)

Last updated on JUNE 22, 2018

Applies to:

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

Symptoms


ACTUAL BEHAVIOR
---------------
WriteRecord script is being invoked even during Update operation. Though the script has criteria to only execute for a new Record. 


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

1) Script as below

NewRecord
----------------------
function BusComp_NewRecord ()
{
  
sCheckNewAccount="Y";

}


WriteRecord
------------------------

function BusComp_WriteRecord ()
{

try
{

if(sCheckNewAccount == "Y");
{

Invoked custom business service. 

 

}

}
catch(e)
{
throw(e);
}
finally
{
sCheckNewAccount=null;


}
}



2) Create a new record
3) Update an existing record

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot . Development time line being impacted.

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!


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