You need to sign in to do that
Don't have an account?
Andrew DI
Maximum view state size limit (135KB) exceeded for Develop->Apex Classes->Compile all classes
Hi people,
Today I faced with interesting problem. When I try to Compile all classes I have a 'nice' error 'Maximum view state size limit (135KB) exceeded.'.
Did someone have this kind of problem? If so, how to solve this issue?
Thanks in advance.
All Answers
http://boards.developerforce.com/t5/General-Development/ViewState-Problem-in-Salesforce-Production/td-p/283647
Please check this screenshot and this one.
Sorry for being not very clear.
and iff using attachments then remove the body after the usage
This can happen when you have a large number of classes in your organization AND there are a signficant number of compilation errors. You have to fix the compilation errors using another tool, such as the Force.com IDE, or correct your compilation errors and try again.
This often happens in code bases that use utility classes, where one or more functions are altered such that they no longer match the signature of the classes that depend on them. You might want to make an "invalid class" list view, try editing each class that is invalid (just edit->save, if there's a problem, fix it and go to the next class).
The Apex Classes page is a Visualforce page, runs on the Visualforce engine, and is subject to the same limitations as normal Visualforce. Having too many compilation errors results in this message.
After I fixed all errors the problem gone. But still, there should be some check or some treatment of such kind of situations.
I got the Same error in my Org, Can you please elobarate how to resolve this?
Thanks in advance!!
I have n number of Classes in my Org, How to Identify which class has got the Issue. I understand that we have to Edit all Utility class and Save then we can find a Compile error...
Then we need to fix it , and you wont get this issue any more?
Is this how i should do?
Thnaks for Quick reply, i appreciate that
Just try to reduce number of error using Force.com IDE or just fixing them through web site.
We have this problem because of enormous number of errors in your org. Just fix errors.
Actually, you may try to deploy change set somewhere and validate you CS. Maybe it will give you some info. But I don't know. It just poped up in my mind.