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
ying.ax1897ying.ax1897 

VF in pagelayout shows error

I have created a VF for attachment and put the VF into a pagelayout.

But there is an error when to get into pagelayout:

Content cannot be displayed: Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 323.953KB

Who knows this error?

Thanks.

Vinita_SFDCVinita_SFDC

Hello,

 

View state of a visualforce page can not exceed 135 KB, if it is then we need to minimize it. YOu can try following things:

 

1) Use transient variables (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_transient.htm)

 

2) Avoide calling remote JS.

 

3) Use only one form tag in your page.

 

Refer: http://wiki.developerforce.com/page/An_Introduction_to_Visualforce_View_State