Loading

Salesforce CPQ "Refresh Prices" Button Returns "Maximum View State Size Limit (170KB) Exceeded" Error

Дата публикации: Jun 24, 2026
Описание

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.

Дополнительные ресурсы
SEE ALSO
Номер статьи базы знаний

000395925

 
Загрузка
Salesforce Help | Article