Loading

CPQ Product Selection Error Apex CPU Time Limit Exceeded

Julkaisupäivä: Sep 27, 2025
Kuvaus

A user encounters an apex CPU time limit exceeded error message in Salesforce CPQ when clicking Select in the Product Selection page of the quote line editor. 

Ratkaisu
If you are encountering a CPU time limit error while attempting to add products to a CPQ Quote (i.e. after clicking 'Select' on the Product Selection screen), here are some things to consider:
  • Number of Products being selected - when adding numerous products to a Quote at one time, particularly if many of these products are bundle products, it will consume a large amount of CPU time to load the products. Consider adding fewer products at a time and instead opt for the Select & Add More button if you know you will need to add more products than the limits can handle in a single attempt.
  • Product Rules Active - Product Rules are processed in Apex. Consider disabling some or all Product Rules to see if they have an impact on the ability to add products. Product Rules that require calculation of Summary Variables are often computationally expensive. This can be especially true if the rules calculate values across all active records on an Account, such as Assets. However, rules that cause the addition or removal of a large number of Product Options in a bundle being added can also have an impact.
  • Bundle Size/Complexity - Consider the complexity of bundles being added during this action. If the bundle features a large number of nested bundle products that come pre-selected, the system will also load all those nested Product Option records prior to the user entering configuration. 
  • Bundle Looping - In the same vein as the level above, beware of Product Options that are parents of Products that exist higher up in the bundle structure within the same chain. (e.g. A is a parent of B which is a parent of C which is a parent of A). This can cause an infinite loop that may manifest in limit errors if these options are all pre-selected.
Knowledge-artikkelin numero

000389436

 
Ladataan
Salesforce Help | Article