How to solve the error limit exceeded?

758    Asked by bruce_8968 in Salesforce , Asked on Aug 22, 2023

 I am getting the error that shows that my organization has exceeded the maximum limit for the feature. 

This error appears on the VF page featuring Apex. I want it to search contacts and add them to the selection, which is saved as child records to master records. Some common themes get saved when different accounts’ multitudes are added, and their population gets their checkbox checked. If I check the 10 checkboxes, it shows the error.  

I tried to enable the triggers and then disabled them. Even though it stopped the error, nothing could deal with the one-to-one checkbox. I also applied a simple formula: 

IF( One_To_One__c = TRUE, 1,0)

When I removed that part, it allowed the code to run. It looks like the trigger and this formula cannot exist together. But I need to keep them in one code. 

Keyword: you or your organization has exceeded the maximum limit for this feature

Answered by Antony Bence

 If you get this error that you or your organization has exceeded the maximum limit for this feature, you can try the IF( One_To_One__c = TRUE, 1,0) formula while the developer console is still on. Also, you can write some executed anonymous code that uses limited static methods. You can also run the request hitting the error when the developer console is still on. That is when the log of the code gets generated. You can find a list of limits in Salesforce. There you can find the exception whenever you exceed the limit. After opening the Developer Console, you can press Debug. Now, move to Switch Perspective and then go to Log only. It can help to remove some unrequired clutters.



Your Answer

Interviews

Parent Categories