+ Start a Discussion
Rajesh ShahRajesh Shah 

Script Too Large

Hi All,

 

I am writing an apex class which has grown too big. When saving through Eclipse or UI, it gives me that 'Script too large'.

What exactly is the size limit of an Apex Class?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
paul-lmipaul-lmi
100,000 chars, and the max size in an org is 1MB of Apex scripts.

All Answers

paul-lmipaul-lmi
100,000 chars, and the max size in an org is 1MB of Apex scripts.
This was selected as the best answer
Rajesh ShahRajesh Shah

Thanks Paul.

As a side question, are comments also counted in the no. of chars?

Message Edited by Rajesh Shah on 11-04-2009 08:05 PM
PragadheeshwariPragadheeshwari
No Commented Char/Lines will not be counted.
TehNrdTehNrd

Also, multi line comments are counted. Single line comments are not.