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
rajmohanrajmohan 

Maximum view state size limit (128K) exceeded. Actual viewstate size for this page was 133.094K

Hi,

 

I got this error when I am trying to pass bulk data and this same data is displayed under 5 separate sections in the visualforce page. This results in more bigger page.

 

In Apex Controller in one function:

 

public List<OperationalTO> getSubdata(){ 

     List<OperationalTO> lst = new List<OperationalTO>();

     lst= x.getData();  // this returns bulk data

      return lst;

}

 

In Visualforce page :

 

I am displaying this data 5 times,

 

<apex:repeat value="{!yy}" var="y">    // this executes 5 times

          <apex:repeat value="{!subdata}" var="sub">

          ......

          ......

          </apex:repeat>

</apex:repeat>

 

Please help in what needs to be done to avoid this error.