We are inserting a child record into a child custom object we encounter "An Application Error Has Occurred" (Doc ID 1625918.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.7.0.0 and later
Information in this document applies to any platform.

Goal

Customer is inserting a child record into a child custom object ... .....
 as described in "Oracle Sales Cloud Application Composer Scripting Guide [Article ID 1354807.1]"
(Understanding Common JBO Exceptions in Groovy Scripts)

--
def parentAttrs = new oracle.jbo.NameValuePairs();
parentAttrs.setAttribute("Id",ParentId);
def activityVO = newView('WeatherDetails_c');
def newRow = activityVO.createAndInitRow(parentAttrs);
activityVO.insertRow(newRow);
--

In the UI the following error is encountered encounter :

An application error has occurred. Your help desk can use the following information to obtain a more detailed description of this incident: 9, Server Domain: CRMDomain, Server Instance: SalesServer_1, Application Name: SalesApp
 

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