You need to sign in to do that
Don't have an account?
Krishna Bandi
Internal Salesforce.com Error
Hi,
I am getting "Internal Salesforce.com Error" while executing the below SOQL statement
list<CustomObject> calls1MonthList = new list<CustomObject>();
calls1MonthList = [select Id, CreatedById from CustomObject where CreatedById in : 'Passing User Ids' and createdDate>:system.today().addDays(-60) and RecordTypeId =:'record Type ID here'];
I tried it by adding more filters into the query, however it does work for couple of times and again it starts giving me the same error.
I am getting "Internal Salesforce.com Error" while executing the below SOQL statement
list<CustomObject> calls1MonthList = new list<CustomObject>();
calls1MonthList = [select Id, CreatedById from CustomObject where CreatedById in : 'Passing User Ids' and createdDate>:system.today().addDays(-60) and RecordTypeId =:'record Type ID here'];
I tried it by adding more filters into the query, however it does work for couple of times and again it starts giving me the same error.
list<CustomObject> calls1MonthList = new list<CustomObject>();
Date d=System.today()-60;
calls1MonthList = [select Id, CreatedById from CustomObject where CreatedById in= 'Passing User Ids' and createdDate>:d and RecordTypeId =:'record Type ID here'];
If this help you out Please marks it as a best Answer to help others :)
It's working if I run the process manually from Developer console however it is working if I schedule the Job.
There are 1600000 records in this object, does the volume of the data is causing issues.
Any help is greatly appreciated.