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
srinivas reddy annadi 7srinivas reddy annadi 7 

How to avoid Collection size 1534 exceeds maximum size of 1,000

I have get this error when loading the visualforce page and we put read only=true but i get view state error.Please suggest how to overcome this issue.

Thanks in advance.
NagendraNagendra (Salesforce Developers) 
Hi Srinivas,

Reduce the size: Have you checked out this thread? https://developer.salesforce.com/forums/?id=906F0000000965wIAA
So I won't reiterate the same info there.

Generally, developer.salesforce.com is more geared towards programmatic solutions, you have tons of resources there, how to guides, workbooks, references, and forums!

Hope this helps,

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra

 
Nishant Dubey 7Nishant Dubey 7
Different way to achieve this. but know about the requirement or try to use "Pagination"