SAP Knowledge Base Article - Public

3568077 - KBA HUB - Scripting

Symptom

This Knowledge Base Article is a list of all KBAs which are related to Scripting and Scripting Documentation.

Resolution

KBASymptomLink
Change on custom calculation not propagated to all usersUpdating 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 productAfter 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 CPQYou might observe that after making changes, it is not possible to save a global script.3522133
Cannot save global scripts due to preselected eventsOn 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 TrackHow the performance of script is tracked?3340072
The description of product is incorrectly parsed on document generationWhen 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 ScriptingWhen 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 workbenchThe 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 deadlockWhen 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 scriptsWhen 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 productsCan 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 QuoteWhen 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 offWhen 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 containerWhen 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 executedWhen 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 CPQWhen user attempts to run a script on an Inactive Quote Revision, Script is not executed. 3368998
Quote is available even after deletionAfter deleting a quote via scripting, it still shows under Load quotes page.3407533
Issue when using special character in scriptsWhen 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 MetricsMore insight in HTTP and endpoint requests data.3527094
Try-expect-continue block behavior change after 2305 updateTry-catch-continue block isn't working on scripts.3333877
KeyNotFoundException When Using UpdateQuote() on container rowWhen 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 CPQstandard [IN] conditional operator it is resulting incorrect result.3316651
QuoteItemGuid property not present in productOne product does not have QuoteItemGuid property.3315918
SQL Pre Filtering on Quote Visibility is not workingSQL Pre filtering is not loading any quote after being set.3312241
CLR Module Breaking ChangesAfter the 2402 release of SAP CPQ, the usage of CLR module will be disallowed.3309638
Script cannot be found on the Global Script SectionCannot find script with Script Name in global script section.3306962
Script execution is timing out in the script workbench after 3 minutesScript 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 conditionWe'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 pageWhen 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 scriptNotifications not being sent on status change triggered by script.3338937
CMT : CPQ: How to write a tag that will perform a square root functionCPQ: How to write a tag that will perform a square root function3234827
Dates comparison through tagsIs it possible to consume any tag that gives us date difference?3232497
Product.IsComplete return True when checking Parent/Child structure on Quote contextScript 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() methodObject 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 valuesThe 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 deprecationScripts 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 ScriptThe CpqTableEntryModifiedBy and CpqTableEntryDateModified columns do not get updated when filling a Custom Table through a Script.3425818
401 error when using mTLSRestClient() to call CPIWhen using mTLSRestClient() method to call CPI, intermittently 401 response is retrieved.3584034
Host for sending mail through scriptingIt 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 CPQWhen 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 dataUnable to transfer more than 100 entries with SCIM API call.3547274 
SAP CPQ call to regenerate JWT Token Signing KeysJWT 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