- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Problem:
========
We're having an issue with a CPQ X call error.
The call that we're using is zqu.QPlanBuilder.makeFromCatalog.
I pass my Quote ID to it, and a list of IDs that correspond to Product Rate Plan Charges that we need.
String quoteId = 'xxxxxxxxx'; List<Id> productRatePlanIds = new List<Id>{'nnnnnnnnnnn'}; List<zqu.QPlan> plans = zqu.QPlanBuilder.makeFromCatalog(quoteId, productRatePlanIds); for(zqu.QPlan plan : plans){ System.debug('testing :' + plan); }
The error thrown is:
"zqu.QPlanBuilder.QPlanBuilderException: Make QPlan from Catalog : Cloned object not found".
This is the knowledge center article documenting this class and sampel code
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Solution:
========
This error has to do with the products. Either the product/ rate plan is expired or it has a pricing issue.
In this specific case, customer was running the class from a test class and was creating the test product data explicitly thru custom code.
It was noticed that there was no code to create the Product Rateplancharge Tier records as part creating the test data.
After code was added to create the product rate plan charge Tier data the error was resolved.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Solution:
========
This error has to do with the products. Either the product/ rate plan is expired or it has a pricing issue.
In this specific case, customer was running the class from a test class and was creating the test product data explicitly thru custom code.
It was noticed that there was no code to create the Product Rateplancharge Tier records as part creating the test data.
After code was added to create the product rate plan charge Tier data the error was resolved.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √