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
john4sfdcjohn4sfdc 

Internal Salesforce Error while trying to delete records using batch Apex

10:29:01.602 (147602972910)|SYSTEM_METHOD_EXIT|[218]|LIST<Account_Territory__c>.add(Object)
10:29:01.602 (147602978431)|SYSTEM_METHOD_ENTRY|[216]|system.ListIterator.hasNext()
10:29:01.602 (147602986344)|SYSTEM_METHOD_EXIT|[216]|system.ListIterator.hasNext()
10:29:01.603 (147603015860)|SYSTEM_CONSTRUCTOR_ENTRY|[224]|<init>()
10:29:01.603 (147603044944)|SYSTEM_CONSTRUCTOR_EXIT|[224]|<init>()
10:29:01.603 (147603054198)|SYSTEM_METHOD_ENTRY|[225]|LIST<Account_Territory__c>.isEmpty()
10:29:01.603 (147603069413)|SYSTEM_METHOD_EXIT|[225]|LIST<Account_Territory__c>.isEmpty()
10:29:01.603 (147603376705)|SYSTEM_METHOD_ENTRY|[226]|Database.delete(LIST<SObject>, Boolean)
10:29:01.603 (147603403830)|DML_BEGIN|[226]|Op:Delete|Type:Account_Territory__c|Rows:2000
10:46:41.895 (1207895617727)|DML_END|[226]

The log ends here and shows Internal Salesforce error.. is there any wrong with line 226??

User-added image