Error When Saving Multiple Line Items to a Quote [Error: Duplicate index 3 for document numbers 4, 0] or [Caused by: java.lang.ArrayIndexOutOfBoundsException: 1] (Doc ID 2081843.1)

Last updated on APRIL 05, 2017

Applies to:

Oracle BigMachines CPQ Cloud Service - Version 11.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to add more than one line item to a quote, or when attempting to create a quote with more than one line item, a series of errors can appear.

When adding multiple line items to an existing quote, an error will appear at the top of the screen:

An unknown error (class com.bm.xchange.util.BMSystemException) has occurred. Please contact your system administrator.
To help us track this error, please note the date and time in your report: yyyy-MM-dd hh:mm:ss.
Unknown Error
An unknown error (class com.bm.xchange.services.commerce.bs.LineItemSequenceException) has occurred. Please contact your system administrator.
To help us track this error, please note the date and time in your report: yyyy-MM-dd hh:mm:ss.

Duplicate index 1 for document numbers 2, 0

 

The following error may appear when creating a new quote with multiple line items:

An unknown error (class com.bm.xchange.util.BMSystemException) has occurred. Please contact your system administrator.
To help us track this error, please note the date and time in your report: yyyy-MM-dd hh:mm:ss.
Unknown Error

 

When creating a new quote, the following can be found in the bm.log:

An unknown error (class com.bm.xchange.util.BMSystemException) has occurred. Please contact your system administrator.
To help us track this error, please note the date and time in your report: yyyy-MM-dd hh:mm:ss.
Unknown Error

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at com.bm.xchange.services.commerce.bs.CmData$CmGroupSequence.compare(CmData.java:4092)
at com.bm.xchange.services.commerce.bs.CmData.setLastGroupSequenceNumber(CmData.java:1665)
at com.bm.xchange.services.commerce.bs.CmData.putLineItem(CmData.java:2119)

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