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
DevBuilderDevBuilder 

SF Error - (Internal Salesforce Error: 1070496590-596 (2082893627) (2082893627)

I keep gettign this internal SF error.

 

we are keeping getting an error(Internal Salesforce Error: 1070496590-596 (2082893627) (2082893627) when we are trying to run our test classes

 

Any idea why i'm getting this?

cloudmaniacloudmania
Review your test codes and make sure ,It doesnt include illogical statement.Sometimes SF is not recognizing illogical statement while saving your codes,it is being occurred on run time!
If I find an example that is ilogical statement , i m gonna post it
arun thakurarun thakur

Code that throw above error... 

 

Test class code 

 

BatchMassDeleteRecords MassDeleteAndRecordUpdate=new BatchMassDeleteRecords ('select Id from dcm__Duplicate_Group__c');
ID batchprocessid = Database.executeBatch(MassDeleteAndRecordUpdate);

================================================================

 

APEX Batch code 

 

global class BatchMassDeleteRecords implements Database.Batchable<sObject>
{

global final String Query;


global BatchMassDeleteRecords (String q)
{
Query=q;
}

global Database.QueryLocator start(Database.BatchableContext BC)
{
return Database.getQueryLocator(query);
}

global void execute(Database.BatchableContext BC, List<sObject> scope)
{

delete scope;

}

global void finish(Database.BatchableContext BC)
{

}
}