Happy Business Starts Here

Error Code: INVALID_VALUE Message: The charge number SUB-******* is already in use. Please enter ano

Highlighted
Zuora Support

Error Code: INVALID_VALUE Message: The charge number SUB-******* is already in use. Please enter ano

When trying to sync a newly created contract from Salesforce CPQ to Zuora we receive the following error:

Error Code: INVALID_VALUE Message: The charge number SUB-0000003 is already in use. Please enter another charge number.

error1.PNG  

Tags (1)
2 REPLIES 2
Zuora Support

Re: Error Code: INVALID_VALUE Message: The charge number SUB-******* is already in use. Please enter

When trying to sync a newly created contract from Salesforce CPQ to Zuora, the error occurs when the sync tries to create a charge with a charge number which is already present in Zuora.

Charge Number is a unique field thus the duplication of the charge throws the error

Error Code: INVALID_VALUE Message: The charge number SUB-******* is already in use. Please enter another charge number.

When checking the Zuora tenant related to the Salesforce CPQ for the error mentioned in the problem there is a Subscription Product Charge with the same charge number SUB-0000003

error2.PNG

So, charge number being a unique key, the error is thrown.

 

We suggest deleting the particular subscription from Zuora and try resending the contract.

 

Note :

We kindly suggest that the charge numbers should start with C- and not SUB-

It can be changed on the Zuora tenant, under AdministrationàBilling Settingà Define Numbering and SKU Formatsà you have Charge Number Prefix set as C-.

 

Support SME

Re: Error Code: INVALID_VALUE Message: The charge number SUB-******* is already in use. Please enter

To add to what has already been documented, for this specific case, following was identified:

 

on Zuora tenant, under Administration--Billing Setting-- Define Numbering and SKU Formats--- customer had  Charge Number Prefix set as C-
so all the charge numbers should start with C- and not SUB-.
This specific subscription with charge number SUB-0000004 was created back in 2017 and not sure how the charge number was assigned as SUB- and not C-.
Couple options could be
- it was updated manually while adding the charge to subscription
- or could be from an earlier integration effort to sending a CPQ contract to Zuora using CPQ connector package.

 

On Salesforce end, for contracts, the Subscription records (These are Salesforce CPQ subsciption object and not Zuora) are created when a Quote, created using Steelbrick CPQ package, is contracted.

This is the salesforce Subscription Object SBQQ_Subscription_c

The Name field of this Subscription Object is defined as this:

 

Field Label:  Subscription #

Field Name:  Name
Data Type:    Auto Number
Display Format:  SUB-{0000000}

 

So, for the example contract in question, SUB-0000004 was created when Quote  was contracted,SUB-0000004 is auto generated with the format defined above.

So, sugegstion was to  delete the old subscriptions with charges having prefix SUB- from customer's sandbox Zuora tenant.

On customer's Zuora production tenant, we did not find any charge having prefix SUB-

 





SigNowBlue.png

 


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √