Posts

Showing posts with the label Apex Code Character

Apex Code Character Limit (Part II)

Increase Apex Code Character Limit We all know about Salesforce Apex Code Character limit and how to check the limit that we exhausted in our org.  USE CASE :- For suppose, if I reached the maximum code character limit in my org and I would like to code further, but the system is not allowing me to do so. In this situation, can I reach out to Salesforce Support to get this limit increased for me? The answer is YES. But conditions apply. Increasing the Apex Code Character Limit is not an easy task for Salesforce support. We need to ensure that we followed all best practices and need to check for any anti-patterns, Invalid test practices and Invalid classes. After performing all these checks from our end, then we are good to raise a case with Salesforce to increase the code character limit for my org. Points to Note:- The Code character limit count includes the spaces, tabs and other formatting characters inside the code. The code comes with any managed pac...

Apex Code Character Limit (Part I)

Image
Apex Code Character Limit What is Apex Code Character Limit? As we know, Salesforce works on a multi-tenant environment. So it provides common resources to every org. If we speak in terms of writing Apex code in our Org, due to multi-tenant architecture design, we do have a limit on code characters for every org.  That means, Salesforce literally counts each and every character that we use to write any code. This limit is called Apex Code Character Limit. The code character limit is almost the same for every org. As of now (after Summer'18 release), the code character limit would be 6 Million. This indicates that any developer can write and develop code in their org up to 6 Million characters. For suppose, if a developer has exhausted the provided code character limit, then an error would be thrown stating that " The total size of apex code in this application after removing comments exceeds the maximum character size of 6000000 ". So we cannot write ...