You need to sign in to do that
Don't have an account?

SOQL Limit of 50000 isn't working
I have these 3 queries in the opening of my first page:
List<Contact> lstContacts = [select id, MailingStreet, MailingCity, MailingState, MailingPostalCode, FirstName, LastName from contact LIMIT 50000];
List<Lead> lstLeads = [select id, Street, City, State, PostalCode, FirstName, LastName from lead LIMIT 50000];
List<Account> lstAccounts = [select id, ShippingStreet, ShippingCity, ShippingState, ShippingPostalCode from account LIMIT 50000];
I have a user that is getting the following error when they try to open the application: Too many query rows: 50001
How is this possible if I have a limit on each of my queries?
List<Contact> lstContacts = [select id, MailingStreet, MailingCity, MailingState, MailingPostalCode, FirstName, LastName from contact LIMIT 50000];
List<Lead> lstLeads = [select id, Street, City, State, PostalCode, FirstName, LastName from lead LIMIT 50000];
List<Account> lstAccounts = [select id, ShippingStreet, ShippingCity, ShippingState, ShippingPostalCode from account LIMIT 50000];
I have a user that is getting the following error when they try to open the application: Too many query rows: 50001
How is this possible if I have a limit on each of my queries?
That means it applies to all the queries fired in one transaction.
thanks,
http://www.forcexplore.com/2014/07/wrapper-class-in-salesforce.html