Transaction Not Getting Created When Invoking WebService With Groovy Code (Doc ID 2018680.1)

Last updated on JULY 06, 2017

Applies to:

Oracle Fusion Incentive Compensation - Version 11.1.9.2.0 and later
Oracle Fusion Incentive Compensation Cloud Service - Version 11.1.9.2.0 and later
Information in this document applies to any platform.

Symptoms

Created groovy script from Sales Cloud to call Incentive Compensation transaction webservice when creating an opportunity.

Sample groovy code :

def incentiveTransactionStaging =
[
  //println("")
  BusinessUnitId :'300000000517008',
  Country :'US',
  CreditDate :currentDate,
  ProcessCode :'CCREC',
  RollupDate :currentDate,
  SourceEventDate :currentDate,
  SourceTrxNumber :v_optyName,
  TransactionType :'MANUAL',
  SourceCurrencyCreditAmount:
  [
  currencyCode :'USD',
  ],
  //optional instance of type:'SourceCurrencyCreditAmount' for accessor:'SourceCurrencyTransactionAmount'
  TransactionQuantity:
  [
  unitCode :'1',
  ],
  //println("")
]


ERROR
JBO-27023: Failed to validate all rows in a transaction.JBO-27024: Failed to validate a row with key oracle.jbo.Key[-1 MANUAL TEST_IC_Trx_03June_1 ] in TransactionStagingEO JBO-27014: Attribute TransactionAmtSourceCurr in TransactionStagingEO is required

STEPS
Trigger the groovy code by saving a won opportunity as in groovy script


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