Class Cast Exception On AR Auto Invoice Creation

(Doc ID 2236734.1)

Last updated on JULY 25, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version to [Release 1.0]
Information in this document applies to any platform.


On : version, Billing - Auto Invoice

Through SOAP UI an invoice created successfully. While passing same value from Sales Cloud, it is throwing a class cast exception.

There is a custom object called "Contract" and this script in groovy:

BigDecimal a = new BigDecimal("1.00")
BigDecimal b = new BigDecimal("100.00")
Long org=new Long("300000001780600")
def interfaceLine=
  OrgId :org,
  BatchSourceName :'XXXX_Auto',
  CustomerTrxTypeName :'XXXX_Auto_Inv_Type',
  BillCustomerAccountNumber :'3008',
  BillCustomerSiteNumber :'8406',
  Comments :'Emaar',
  TrxDate :2017-02-06,
  CurrencyCode :'MAD',
  ConversionType :'User',
  ConversionRate :a,
  ConversionDate :2017-02-06,
  Description :'Invoice',
  GlDate :2017-02-06,
  LineType :'LINE',
  unitCode :'',
  _text :a,
  PaymentTermsName :'IMMEDIATE',
  currencyCode :'MAD',
  _text :b,
  UOMName :'Each',
  __FLEX_Context :'XXXX DFF',
  _FLEX_NumOfSegments :1,

Exception in expression "NewLease_c" object function Reserve(): oracle.binding.expr.ServiceInvocationException.


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