When a user clicks the Refresh Prices button on a CPQ Quote, the following error appears:
"Maximum view state size limit (170KB) exceeded. Actual view state size for this page was [X]KB."
Salesforce enforces a platform-wide 170KB maximum view state size for Visualforce pages. When a CPQ button triggers a managed Visualforce page, all page data must fit within this limit. If the combined data exceeds 170KB, the error is thrown and the page fails to load.
This error most commonly occurs in the following scenarios:
- The Quote contains a large number of Quote Lines, each contributing to the total view state size.
- A large number of custom fields exist on the Quote Line object, increasing the data volume passed into the view state on each page load.
Both conditions can exist independently or together, and the likelihood of hitting the limit increases as Quote and org complexity grow over time.
Reduce the total Visualforce view state size below the 170KB platform limit by decreasing the volume of data loaded when the Refresh Prices button is clicked. Apply one or both of the following steps:
1. Reduce the number of Quote Lines on the affected Quote. Split large Quotes into multiple smaller Quotes if the business process allows.
2. Identify and remove unused or unnecessary custom fields on the Quote, Quote Line, or Quote Line Group objects. Fields that are no longer needed still contribute to view state size and should be deleted or deactivated to reduce page load data.
000395925

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.