My Oracle Support Banner

Cannot find matching method java.math.BigDecimal#compareTo(java.Lang.String) Please check if the declared type is right and if the method exists. (Doc ID 2271655.1)

Last updated on OCTOBER 11, 2023

Applies to:

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

Symptoms

On :  11.12.1.0.0 version, Accounts, Contacts, Households

ACTUAL BEHAVIOR  
---------------
Script for Object Trigger trigger is not setting Fixed Choice List (FCL) value
When validating the script, the following errors appear:

Warning(l,4) : Cannot find matching method java.math.BigDecimal#compareTo(java.Lang.String) Please check if the declared type is right and if the method exists.
Warning (2,34)Cannot find matching method bc4j.null.gs#returnOrganizationSize(java.lang.String) Please check if the declared type is right and if the method exists.

EXPECTED BEHAVIOR
-----------------------
The Organization Size is to be updated based the value of a custom Number type field.

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create new Account object trigger
2. Enter the following script:
if(CustomNumberField_c<='2499'){
setAttribute('OrganizationSize', returnOrganizationSize('REGIONAL'))
}
if(CustomNumberField_c >='2500'&&CustomNumberField_c <='24999'){
setAttribute('OrganizationSize', returnOrganizationSize('COMMERCIAL'))
}
if(CustomNumberField_c >='25000'){
setAttribute('OrganizationSize', returnOrganizationSize('ENTERPRISE'))
}
3.Script does not validate

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, We are using the Organization size as a dimension in Territory Management. The Org size is based on number of employees. We need to default this field so that the Account does not get missed in Territory Assignment.

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
References


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