My Oracle Support Banner

Update PrimaryEmailAddress Via Groovy (Doc ID 2647710.1)

Last updated on DECEMBER 22, 2020

Applies to:

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

Symptoms

On : 11.13.19.10.0 version, Accounts, Contacts, Households

Update PrimaryEmailAddress via groovy

I am trying to develop a groovy script to update a contact's PrimaryEmailAddress field, however I am being hit with an error when trying to run it.

ERROR
-----------------------
oracle.jbo.ReadOnlyAttrException


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
def ctc_view = newView('PersonProfile');
ctc_view.setMaxFetchSize(1);
ctc_view.executeQuery();

if (ctc_view.hasNext()) {
def ctc_row = ctc_view.next();

if (ctc_row.PrimaryEmailAddress != 'testMail') {
ctc_row.PrimaryEmailAddress = 'testMail';
}
}

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot use the current Groovy script to update Person email address.

Changes

 

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!


In this Document
Symptoms
Changes
Cause
Solution
References


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