My Oracle Support Banner

GCDCOLAC :: Unable To Save Due To Invalid Datatype For NettingAmount (Doc ID 2935047.1)

Last updated on MARCH 16, 2023

Applies to:

Oracle FLEXCUBE Universal Banking - Version 14.6.0.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 14.6.0.2.0 version, Implementation Support

GCDCOLAC :: Unable to save due to Invalid Datatype for nettingAmount

GCDCOLAC screen is throwing error while saving.

ERROR
-----------------------
Contract Contribution of Contract Reference 0000000000057 should be less than or equal to the Account Balance GEDCOLLT_30

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1) Launch GCDCOLAC
2) Provide the mandatory details in the main screen
3) Navigate to Linked Accounts and Contracts and provide the details. Contract Contribution should be less then Account Balance.
4) While saving its throwing error.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users can't able to submit the transaction in GCDCOLAC screen.

ANALYSIS:
------------------------

Currently nettingAmount datatype is INTEGER and its trying to convert BIGDECIMAL to INTEGER Datatype. also nettingAmount is not holding the decimal value.
its throwing error for large amount.

Class file Path: ELCMKernel.jar\com\ofss\elcm\el\CollateralsGCDCOLACChild.class

from Class file: (2nd line)

if (!collateralsGCDCOLACDto.getCollateralsLinkedContracts().isEmpty()) {
  int nettingAmount = 0;
  BigDecimal totalContractContribution = BigDecimal.ZERO;
  for (CollateralsLinkedContractGCDCOLACDto collateralsLinkedContractDto : collateralsGCDCOLACDto.getCollateralsLinkedContracts()) {
  dbg("Coming inside for Validation on Linked Contract");


From Debug:

Got netting Amount-->>>3805477404.15
totalContractContribution 2:0
INSIDE validating netting amount
Validation On contractContribution
totalContribution10000.00
Got sumOfContribution->>>>null
totalContribution :10000.00
Got sumOfContribution->>>>0
currContribution :: 0
nettingAmount :: -489489892

Changes

 Fix provided to change the validation using consistent data types.

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.