+ Start a Discussion
PRepakaPRepaka 

Error in Apex Code

hi

While writing apex coding, i am getting the below error. if i comment the existing class it is accepting upto some extent. even when i validate this with production there also i am getting the same error. please help me. 

Error: The total size of apex code in this application after removing comments exceeds the maximum character size of 1000000.

hisrinuhisrinu

Hi Padma,

 

 Your apex code  size is exceeded than the 1MB (limit by salesforce).

 So for all the test classes use istest annotation so that these classes won't fall under actual memory category.

 For more help have a look at Apex Guide.

 

 

PRepakaPRepaka

hi srinu

 

Thanks for ur solution. it works fine.