+ Start a Discussion
SFDC Dev16SFDC Dev16 

Troubleshooting Apex Warning Emails

Hi,

We are receiving the warning email from salesforce following the execution of an Apex function. There is no indication of what class this is referring to, so we cannot debug. Is there a way to figure out the class is the root cause.

Thanks!
Mahesh DMahesh D
Please paste the email content, so that it will give some idea about the issue.

Regards,
Mahesh
SFDC Dev16SFDC Dev16
Hi Mahesh,

Thanks for looking into it and below is a screenshot of the email.

User-added image
Mahesh DMahesh D
This is one of the governor limit.

To resolve this,

You need to have a filter on any indexed field in soql queries, Please go through below link to make selective soql:-
http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_SOQL_VLSQ.htm

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL_VLSQ.htm
https://help.salesforce.com/apex/HTViewSolution?urlname=How-to-make-my-SOQL-query-selective&language=en_US

You need to contact Salesforce and ask them to provide the appropiate query along with the other details.
Once the query is identified, Salesforce will create an index field or skinny table and fix it by themselves

Regards,
Mahesh
RKGRKG
Use limits in soql query which used in database.querylocator() or use database.query() instead of querylocator()