Symptom
When trying to add a variant product to the quote, CPS returns a communication error.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Open a quote
- Open Developer Console in another tab
- Search for the backend product
- Configuration will not be loaded and provide CPS Communication Error with message":"The request was rejected because the URL contained a potentially malicious String \"//\"","messageDetails":null,"moreInfo":null,"details":[]} Exception: One or more errors occurred"
Cause
- It should be verified which events are being triggered for script execution on the Product
- Product rules are defined primarily in SAP Variant Configuration and Pricing (which is recommended)
- It is possible to use IronPython scripting to configure synchronized products in SAP CPQ, but only using the product event OnProductReady, which can be used in both quote engines
- When assigned to a Variant Configuration product, onProductReady event, functions the same way it does on standard SAP CPQ products. It is triggered every time that product is configured in any of the following ways:
- creating a new configuration
- opening or editing an existing configuration
- creating, editing, or adding favorites to the quote
- Performing the Reconfigure action.
Resolution
- Only OnProductReady event is supported for script execution on products for VC Products
- All other product events should have scripts removed from them.
See Also
Keywords
Variant Configuration, CPS, VC, Backend, Product Rule, Script, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem
Product
SAP CPQ 2023