Symptom
- When doing Reprice or Add to Quote action, we see an error in script execution in Dev console, with a script called "Total Calculation".
- But this script is not visible anywhere in the tenant - neither under global scripts nor under custom actions.
- We see this Log in Dev console even with the UI customizations and ironpython scripting turned off.
Environment
SAP SALES CLOUD CPQ
Cause
- The reason why we see a log as script execution - Total calculation is that we just log part of the Total calculation, and not a part of which custom calculation (name of the custom calculation) is executed.
- This means that some custom calculation is not correct or has an error.
- This will be improved in one of the future releases.
- You can try the below steps as an example:
1. Create a custom calculation with a row type: CartTtotal (it's not necessary to add any script)
2. Attach the calculation on Add/Copy/Delete on Cart Fields Administration page
3. Save it
4. Exit setup
5. Open dev console
6. Open Catalog and click Configure on any product
7. Clear dev console
8. Populate all required fields in the Configurator
9. Click Add to quote
10. Check logs in Dev Console for /api/v1/Cart/AddToQuote
11. You can filter for : Total calculation - There will be logs: Script Execution - Total calculation
- In the same way, if you delete this custom calculation this log won't be presented in dev console.
Resolution
This is a modelling issue and it needs to be investigated by yourself or your implementation team, as the issue falls under consulting category and such issues are out of scope for us.
See Also
Keywords
total calculation, scripting, custom calculations, modelling issue, consulting, developer console, heavy modelling, configurator, configuration , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem
Product
SAP CPQ all versions