7-6-1. Maximum view state size limit exceeded.
Q.
Maximum view state size limit exceeded.
A.
Symptoms: The below error message is shown upon attempting to view a page. (As of 2019/3/3)
This error appears when you have surpassed your allocated data size.
Data size limitations (and the limit value) are specified by Salesforce. For specific details please refer to Salesforce documentation.
The only way to solve this error is to reduce the size of the data to be displayed on the screen.
The size of the data can be reduced by either removing some fields from the screen or by adding filtering requirements to data tables to reduce the number of records shown at once.
- Using the Development Mode Footer
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_tools_edit_toolbar.htm
- An Introduction to Visualforce View State
https://developer.salesforce.com/page/An_Introduction_to_Visualforce_View_State