• V D 1 8
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,

I have a requirement to write a trigger on AccountTeamMember object.
Unfortunately a apex trigger on AccountTeamMember object is not possible.
Here is a open Idea: https://success.salesforce.com/ideaView?id=08730000000YR8IAAW

So I designed a workaround to have a scheduled batch program.

In the batch apex class I am using getDeleted method to access deleted AccountTeamMember records. I am getting a GACK message at this line of code.

Database.GetDeletedResult deletedRecordsObj = Database.getDeleted('AccountTeamMember',Datetime.now().addHours(-1),Datetime.now());

below is the gack message:

System.UnexpectedException: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 819619165-57530 (1151038934)

Any suggestions on how I might proceed?

VD.
Hi,

I have a requirement to write a trigger on AccountTeamMember object.
Unfortunately a apex trigger on AccountTeamMember object is not possible.
Here is a open Idea: https://success.salesforce.com/ideaView?id=08730000000YR8IAAW

So I designed a workaround to have a scheduled batch program.

In the batch apex class I am using getDeleted method to access deleted AccountTeamMember records. I am getting a GACK message at this line of code.

Database.GetDeletedResult deletedRecordsObj = Database.getDeleted('AccountTeamMember',Datetime.now().addHours(-1),Datetime.now());

below is the gack message:

System.UnexpectedException: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 819619165-57530 (1151038934)

Any suggestions on how I might proceed?

VD.
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).