Custom Error Message On Account-Relationship Is Not Working As Expected

(Doc ID 2378456.1)

Last updated on APRIL 16, 2018

Applies to:

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

Symptoms

Custom Error Message On Account-Relationship is raised when user clicks on Save. The error message is thrown but when user clicks on save and close same error message is thrown in 2 lines.
Also if user tries to remove the record, OOTB error message is thrown the following error occurs.

ERROR
Attempt to access dead entity in PartyUsageAssignmentEO

STEPS
A custom script is written on Before Insert trigger of Relationship object to restrict associating contact/account to a Prospect account.
So as per the script, when user tries to associate contact/account to prospect account from relationship sub-tab of account and save the record, error message is thrown.



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