You need to sign in to do that
Don't have an account?
CustomDataIntegrations
Too many query rows 50001
The 2nd line below errors with the "Too many query rows 50001". Is that because 50000 may have already been hit with the first query?
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];
[1] http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm