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
Luigi RulesLuigi Rules 

GACK on Batchable Apex

Hello, I seem to have caused a GACK on my batchable apex class. When compliling I got this message:

An unexpected error occurred. Please include this ErrorId if you contact support: 756300814-61854 (704773059)

This batch class is designed to identify a set of leads based on a record type and then delete them on a schedulded basis. I'm using Mavensmate + Sublime 3 (if that helps). 
Best Answer chosen by Luigi Rules
Asif Ali MAsif Ali M
Try to save your code directly from Salesforce Developer console once and pull the changes into sublime and try to save in sublime. Hopefully you dont see the error again.

All Answers

Asif Ali MAsif Ali M
Try to save your code directly from Salesforce Developer console once and pull the changes into sublime and try to save in sublime. Hopefully you dont see the error again.
This was selected as the best answer
Luigi RulesLuigi Rules
That did not solve it. I ended up re-working my code and resloved the issue. Thank you though. 
V D 1 8V D 1 8
Hi,

I have a GACK message on my batchable apex class.

It is on this line:
        Database.GetDeletedResult deletedRecordsObj = Database.getDeleted('AccountTeamMember',Datetime.now().addHours(-1),Datetime.now());

Can you please share what changes you did to resolve this issue?

V