My Oracle Support Banner

Unable To Configure A Trigger That Shows Messages About Attachments On Contract Validation (Doc ID 2895691.1)

Last updated on SEPTEMBER 21, 2022

Applies to:

Oracle Fusion Enterprise Contracts Management Cloud Service - Version 11.13.22.04.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.13.22.04.0 version, Extensibility

ACTUAL BEHAVIOR
---------------
Upon using the below script when validating a Contract, the validation error shows every time "Attachment is missing" even when the attachment exists in the contract.


def attach = AttachmentEntityName;
if(attach== null)
{
throw new Exception("Attachment is missing, Please add attachment under documents tab");
}

script2
def attach = AttachmentEntityName;
if(attach== null)
{
throw new oracle.jbo.ValidationException("Attachment is missing, Please add attachment under documents tab")
}
please suggest(please refer to the attached screenshot)

 

EXPECTED BEHAVIOR
-----------------------
On contract validation the script to be triggered for correct use case

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1.Created a validation script that would be thrown when attachments are missing on the contract
2. Validate contract
3. Occurred one message "Attachment is missing" for both use cases, even when attachment exists


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
Cause
Solution


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