- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Question:
We are attempted to write an Apex class which will programmatically create a renewal quote. The quote is getting an ‘Argument cannot be null’ error when attempting to calculate the metrics.
What is the cause of this issue and how to resolve.
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
Answer:
Upon rewieing the debug logs for the renewal quote created by Apex class.
It is throwing error with below stack trace
10:22:45.970 (5022674109)|USER_DEBUG|[23]|DEBUG|Error while processing preview results: Class.zqu.MetricObjectBuilderFactory.RenewalMetricObjectBuilder.createQCS: line 246, column 1
Class.zqu.MetricObjectBuilderFactory.BaseMetricObjectBuilder.createMetricObjects: line 178, column 1
Engineering team have confirmed this as bug that this issue will be addressed in future release and no ETA on it.
Jira Reference for this issue COM-13243.
Workaround suggested to remove the field value for zquProductRatePlanCharge_c on Quotechargesummary then refresh the quote, which should calculate the metrics again without error.
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
Answer:
Upon rewieing the debug logs for the renewal quote created by Apex class.
It is throwing error with below stack trace
10:22:45.970 (5022674109)|USER_DEBUG|[23]|DEBUG|Error while processing preview results: Class.zqu.MetricObjectBuilderFactory.RenewalMetricObjectBuilder.createQCS: line 246, column 1
Class.zqu.MetricObjectBuilderFactory.BaseMetricObjectBuilder.createMetricObjects: line 178, column 1
Engineering team have confirmed this as bug that this issue will be addressed in future release and no ETA on it.
Jira Reference for this issue COM-13243.
Workaround suggested to remove the field value for zquProductRatePlanCharge_c on Quotechargesummary then refresh the quote, which should calculate the metrics again without error.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √