Happy Business Starts Here

Zuora Support

Error on zCharge:<Charge Name>, Details: Please enter a total price

Problem - If you have added a custom code and its throwing an error similar to the error below

 

One or more charges failed validation: Error on zCharge:MI.testCharge, Details: Please enter a total price 
Error is in expression '{!onLoad}' in component <apex:page> in page z_createtrialquotepage: Class.zqu.zQuoteUtilHelper: line 687, column 1 
Class.zqu.zQuoteUtil: line 68, column 1 
Class.zqu.Quote.save: line 386, column 1 
Class.zqu.Quote.buildAndSave: line 365, column 1 
Class.Z_CreateTrialQuote.createTrialExtensionQuote: line 208, column 1 
Class.Z_CreateTrialQuote.onLoad: line 100, column 1

An unexpected error has occurred. Your solution provider has been notified. (zqu) 





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

1 REPLY 1
Highlighted
Zuora Support

Re: Error on zCharge:<Charge Name>, Details: Please enter a total price

Solution - In this specific case, customer was trying to clone the quote using the custom code and it was throwing the error mentioned in the problem statement. On checking the internal code and then the related list Quote Rate Plan Charges, we found that the Total__c field on this related list was null as shown below.

 

Null_Total.png

 

The error was resolved after adding the value to the QRPC-->Total__c field which was null before.

 

QuoteRatePlanCharge_Total.png

 

 






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