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
priya bhawna shettypriya bhawna shetty 

soql related

hi friends

can anyone tell me

in apex class or in soql query when we wil get "101" kind of error...


Best Answer chosen by Admin (Salesforce Developers) 
Forza di SognoForza di Sogno

Are you trying to create a 101 error or are you experiencing a 101 error?  This error is due to having too many SOQL queries, e.g. by having a SELECT statement within a loop.


See this article.


Also, post your code, so we can see where you might be hitting that limit.