Symptom
This Knowledge Base Article is a list of all KBAs which are related to Scripting and Scripting Documentation.
Resolution
| KBA | Symptom | Link |
| Change on custom calculation not propagated to all users | Updating script in custom calculation does not reflect on the system. Quotes are not up to date due to incorrect pricing. | 3554216 |
| Product.ApplyRules method not triggering CPQ Rules on a VC product | After performing a call to Variant Configuration System, even though using Product.ApplyRules method, CPQ Product Attribute Rules are not being retriggered. | 3555250 |
| Save button is greyed out on global script in CPQ | You might observe that after making changes, it is not possible to save a global script. | 3522133 |
| Cannot save global scripts due to preselected events | On migration from Quote 1.0 to 2.0 there are preselected events from the production tenant in global scripts which are 1.0, while reconfiguring the global scripts, we cannot save the scripts due to those preselected events. | 3515379 |
| Script Performance Track | How the performance of script is tracked? | 3340072 |
| The description of product is incorrectly parsed on document generation | When defining document language, the product description set through scripting returns the value defined in setup. | 3447642 |
| Quote Table Custom action - AddToQuote leading to Inconsistencies in Scripting | When importing a global script module, that contains AddToQuote method, into a Quote Table Custom Action it is not behaving the same way as when code is directly written in Action Definition. | 3495594 |
| False calculation observed in the ironpython script workbench | The IronPython scripts are not able to retrieve decimal values as results. | 3504060 |
| CPQ SQLEXCEPTION: Transaction was deadlocked on lock resources with another process and has been chosen as the deadlock | When executing a script in CPQ, you see this error: "SQLEXCEPTION: Transaction was deadlocked on lock resources with another process and has been chosen as the deadlock victim". | 3513262 |
| Issue when using special character in scripts | When using special characters (e.g. ö) in Scripting, CPQ returns error message: Unable to translate bytes [F6] at index 0 from specified code page to Unicode. | 3505150 |
| Script events not available for variant configuration products | Can only attach global script to "OnProductReady" event on product when configuration type is Variant. | 3478510 |
| Product Interface throws Fatal when no product has been loaded in the Quote | When attempting to verify if there is any product in the quote, if using x=Product, a fatal is thrown. | 3476726 |
| Can see script execution logs for a script called "Total Calculation" in Dev console even with scripting turned off | 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. | 3471849 |
| GetAllItems method returning removed products from container | When running GetAllItems method in a script, previously deleted items from a container attribute are being returned, as they were still in the product. | 3404126 |
| CPQ Attribute Visibility Rules not applied on Variant Product after Script is being executed | When configuring a Variant Product that contains CPQ Visibility Rules configured, if selecting any attribute, that triggers the Visibility Rule, and using a script, Visibility Rules are no longer applied. | 3556978 |
| Script execution doesn't work on Inactive Quote Revision in CPQ | When user attempts to run a script on an Inactive Quote Revision, Script is not executed. | 3368998 |
| Quote is available even after deletion | After deleting a quote via scripting, it still shows under Load quotes page. | 3407533 |
| Issue when using special character in scripts | When using special characters (e.g. ö) in Scripting, CPQ returns error message: "Unable to translate bytes [F6] at index 0 from specified code page to Unicode." | 3505150 |
| CPQ Metrics | More insight in HTTP and endpoint requests data. | 3527094 |
| Try-expect-continue block behavior change after 2305 update | Try-catch-continue block isn't working on scripts. | 3333877 |
| KeyNotFoundException When Using UpdateQuote() on container row | When UpdateQuote() is triggered to update only a Container Row in configurator, Fatal is thrown. | 3329961 |
| Script performance doesn't show recent data. | On setup home page script performance and error chart doesn't show recent data. | 3316874 |
| [IN] Operator is returning value as False (0) when used with CTX and TABLE tag in CPQ | standard [IN] conditional operator it is resulting incorrect result. | 3316651 |
| QuoteItemGuid property not present in product | One product does not have QuoteItemGuid property. | 3315918 |
| SQL Pre Filtering on Quote Visibility is not working | SQL Pre filtering is not loading any quote after being set. | 3312241 |
| CLR Module Breaking Changes | After the 2402 release of SAP CPQ, the usage of CLR module will be disallowed. | 3309638 |
| Script cannot be found on the Global Script Section | Cannot find script with Script Name in global script section. | 3306962 |
| Script execution is timing out in the script workbench after 3 minutes | Script execution in the script workbench is timing out after 3 mins. | 3305631 |
| Unable to use an attribute containing brackets in it's name, in a CTX tag condition | We're allowed to use Brackets in the product and attribute names. But when we try to use a condition that contains an attribute with a bracket in it, then we're getting "Unknown tag" error. | 3304641 |
| Quote context exists on the quote list page | When executing scripts via responsive templates that open quote list, quote context is present in the Quote list page causing an error in the script execution. | 3406415 |
| Notifications not being sent on status change triggered by script | Notifications not being sent on status change triggered by script. | 3338937 |
| CMT : CPQ: How to write a tag that will perform a square root function | CPQ: How to write a tag that will perform a square root function | 3234827 |
| Dates comparison through tags | Is it possible to consume any tag that gives us date difference? | 3232497 |
| Product.IsComplete return True when checking Parent/Child structure on Quote context | Script snippet Product.IsComplete returns True even when the parent product is marked as incomplete in a Quote context for parent/child structure. | 3567970 |
| Error “Object reference not set to an instance of an object” when calling Edit() method | Object reference not set to an instance of an object. Error message thrown when calling Edit() method of IQuoteItem Interface for system list items. | 3559886 |
| Free format custom fields for numeric values | The free form format of custom fields permits any input, such as for example 1,000.00 or 1000,00, without enforced formatting, potentially leading to issues where enforced formatting is required. | 3447571 |
| Import sys module deprecation | Scripts that use sys module cannot be modified, error message is displayed: "Import of iron python built-in modules: "sys" on the line 1 is not allowed.". | 3437821 |
| CpqTableEntryModifiedBy and CpqTableEntryDateModified columns are not updated when populating a Custom Table via Script | The CpqTableEntryModifiedBy and CpqTableEntryDateModified columns do not get updated when filling a Custom Table through a Script. | 3425818 |
| 401 error when using mTLSRestClient() to call CPI | When using mTLSRestClient() method to call CPI, intermittently 401 response is retrieved. | 3584034 |
| Host for sending mail through scripting | It is needed to send mail through scripting, for that, in accordance to help page, host needs to be provided. | 3621622 |
| Incorrect Data Displayed Using CTX Tag in SAP CPQ | When using the CTX tag <*CTX( Quote.CurrentItem.CustomField(<custom_field_name>) )*> in SAP CPQ, incorrect data is displayed.The issue arises when a new item is being configured but not yet created. The system displays the value from the first item in the Formula Builder or script result. | 3583245 |
| CPQ SCIM API is not returning the completed data | Unable to transfer more than 100 entries with SCIM API call. | 3547274 |
| SAP CPQ call to regenerate JWT Token Signing Keys | JWT Token Signing Keys within the Trusted Applications administration is now 128 characters long, and the Secret field on the Credential Management page (for records of type Secret) now requires at least 32 characters. | 3480995 |
Keywords
Scripting, Documentation, Hub , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem
Product
SAP CPQ all versions
SAP Knowledge Base Article - Public