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
sivasankar.ksivasankar.k 

Apex Code Size limit Exceeded : The total size of apex code in this application after removing comments exceeds the maxiumum character size of 600000

Hi,

We are facing below issue while deploying apex classes from developer sandbox to full sandbox.
The total size of apex code in this application after removing comments exceeds the maxiumum character size of 300000

We have salesforce support team to increase the limit to 6 MB but still we are getting below error. We have tried deploying through both eclipse and change sets but of no use.
The total size of apex code in this application after removing comments exceeds the maxiumum character size of 600000

Any kind of help will be really appreciated.

Thanks,
Siva
PratikPratik (Salesforce Developers) 
Hi sivasankar,

It seems to be you have even crossed 6MB limit.
Try to remove unsed code like classes which you are not using, inactive triggers etc.

Still if you want to increase the code size limit, contact Salesforce support.

Thanks,
Pratik