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 11.1.11.1.0 to 11.1.11.1.0 [Release 1.0]
Information in this document applies to any platform.

Symptoms

On : 11.1.11.1.0 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',
  Quantity:
  [
  unitCode :'',
  _text :a,
  ],
  PaymentTermsName :'IMMEDIATE',
  Amount:
  [
  currencyCode :'MAD',
  _text :b,
  ],
  UOMName :'Each',
  TransactionInterfaceLineDff:
  [
  __FLEX_Context :'XXXX DFF',
  _FLEX_NumOfSegments :1,
  //xxxxArDff:'Test-1110',
  ],
  ]
adf.webServices.ARInvoice.createInterfaceLine(interfaceLine)

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

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