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
ShrinivasShrinivas 

Visualforce Error : Collection size 19,048 exceeds maximum size of 1,000. ???? Help

Hi Team,

Can any one please help me to avoid collection size.

Thanks
Raj VakatiRaj Vakati

There are two simple trick to by pass the collection size limit on page.

1 .Instead of using list of objects just use any map like Map<Id,SObject> and your page will never show this error again.
2. Set readOnly attribute to true  your apex:page 


https://salesforce.stackexchange.com/questions/133969/collection-size-1-335-exceeds-maximum-size-of-1-000