Groovy Scripting - NewView Method : newView('MklLeadVO'); Throws "oracle.jbo.NoDefException" (Doc ID 1516349.1)

Last updated on OCTOBER 03, 2016

Applies to:

Oracle Fusion CRM Application Composer - Version 11.1.3.0.0 and later
Oracle Fusion CRM Application Composer Cloud Service - Version 11.1.4.0.0 and later
Information in this document applies to any platform.

Goal

On : 11.1.5.0.0 version, Server Scripting

When attempting to invoke MklLeadVO object
the following error occurs.

ERROR
-----------------------
JBO-25184: Exception in expression "MklLeadVO" object function CountLeadObj_DealSize() : oracle.jbo.NoDefException


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
A)
Navigator > Application Composer > Application = Marketing > standard object : Sales Leads Version 2
> Server Scripts

> Valiodation tab

validation rule : Test_ViewObj_CountRow

if ( CustomerNeed == "count" ) {
def count = CountLeadObj_DealSize()
setAttribute('Description',count)
return true
}
else {return true}

> Object Functions : CountLeadObj_DealSize

def vo = newView('MklLeadVO');
return 3;



B)

When executing a object function with the code :
 def vo = newView('MklLeadVO');
 return 3;

throws the error:
JBO-25184: Exception in expression "MklLeadVO" object function CountLeadObj_DealSize() : oracle.jbo.NoDefException

I doublecheck that the API name of the lead object from which I want a viwe object is : MklLeadVO (see Screenshot attached)

I tested internally and reproduced (RUP3 Pool2)

some similar objects like OpportunityVO can be instanciated

 

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot instance "MklLeadVO view object and so uptake Mkl Leads via Groovy scripts
 

Solution

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