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
sai kumar 49sai kumar 49 

What is 101 Error ? Where u have faced ? How u have resolved?

ManojjenaManojjena
Hi Sai,

101 SOQL error is a LIMIT  error ,You can excecute 100 SOQL in one execution context . When it will exceed 100 menas when it will touch 101 apex runtime engine will throw a error 101 SOQL error .

Lik this a lot of limit error is there you can find below the debug log or you can check in the LIMIT pdf given by salesforce  .

Try to down load the pdf by hiting the link below .

https://ap1.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf   

Where we basically face this error 
1.Incase you have added SOQL in any for loop and your loop will ierate more than 100 times then it will hit the LIMIT .
2.In case your triger fall under recursion then chances to hit the LIMIT .
3.IF you will not wrap the test method within Test.StartTest() and Test.stopTest () then chances are there to hit the LIMIT .

Finally if you will take care all 3 scenario then you will nat face basically .

Let me know if you have still doubt .

Thanks 
Manoj
Andy BoettcherAndy Boettcher
You can also read up on "Bulkification" on this link:  http://sforce.co/1LRJXu7

What you are running in to is a "Governor Limit" - Salesforce puts limits on certain aspects of your code to ensure that you 1) code smartly, and 2) don't bring down a pod with inefficient/bad code.