You need to sign in to do that
Don't have an account?
Kim D.ax1409
Max view state size limit error
We created a class to pull all comments (custom object) related to a record (ie, account, case, opportunity, etc) and displays the comments. We finally ran into this max view limit error and I'm not sure what I can do to get around this. We don't delete comments so these will continue to increase, especially with high-profile accounts.
Our original SF developer is no longer here and would really appreciate getting some help on this issue. I can send you the Apex script we have. We thought about limiting the number of records we get back, but then our users wouldn't be able to see older comments. We also considered creating another account record to hold older comments, but that's not ideal and besides, I wouldn't know how to do that.
Our original SF developer is no longer here and would really appreciate getting some help on this issue. I can send you the Apex script we have. We thought about limiting the number of records we get back, but then our users wouldn't be able to see older comments. We also considered creating another account record to hold older comments, but that's not ideal and besides, I wouldn't know how to do that.
For example:
BAD: <Apex:outputText value="{!yourValue}" />
GOOD: {!yourValue}
The view state size limit is 135K and without paging the Apex controls will eat up 135K easily.
@Ravi, how do I send you the code? I don't see a way to attach it here. Thanks in advance!