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
Sfdc@SmithaSfdc@Smitha 

cross the governer limits in soql statements what error will occur?

Hi

 

Interview question:If we cross the governer limits in soql statements what error will occur?can any body help me?

@anilbathula@@anilbathula@

Hi

 

There are many types of soql errors.

But the basic error you will get when u cross the gover limits is:-

System.LimitException: Too many SOQL queries: 101"

Sfdc@SmithaSfdc@Smitha

Hi anil thanks for reply.U said that there are many types of soql errors in that errors " malformed query" is there if is it what is the function of it pls clealy explain it? 

@anilbathula@@anilbathula@

HI

 

malformed query arises when you are passing some hard coded ids in the query.

And when u are using sql type of joins in the soql .

When the you are looking for some child and parent relationships in the query and the fields are not correct

Then you get this error.

 

 

Sfdc@SmithaSfdc@Smitha

Thanku anil for this question u mean to say the answer is limit exception error not malformed query right

@anilbathula@@anilbathula@

HI 

 

This error occurs when u cross some specific limits.

Check this link:-http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_concepts_core_data_objects.htm