function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SforcehariSforcehari 

Reg : Maximum view state limit exceeded?

Haribabu Amudalapalli

Hai to Salesforce,

 

   I am getting following problem 

 

           Miximum View state limit exceeded.

 

I have form there i am selecting options,based on that i am displaying results on the Vfpage.It is working fine in one sand box .but it is not working in another sandbox,there i am getting above exception, when i am trying to execute that page.

 

Please heklp me to solve the above issue.

 

Regards,

Haribabu

TheSwamiTheSwami

If you have a lot of data which you are loading and storing in class variables, it can cause this error.

The View State stores the values of non-transient class variables declared in your Controller.  So, if you query 1000 records and save them to a class variable, then you will have a large view state.

 

Take a look at the View State information in this document:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_best_practices_performance.htm?SearchType=Stem&Highlight=View|view|viewing|viewed|Views|Viewing|views||states|state|State|States

 

Hope this helps,

Vijay