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
V D 1 8V D 1 8 

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

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.
NagendraNagendra (Salesforce Developers) 
Hi,

Sorry for this issue you are encountering.

This type of error indicates that an error has occurred that hasn't been trapped by the platform - a low-level java exception for example.
 
If you need to move quicker than, start removing functionality from the component to isolate where the problem occurs and see if there are any other mechanisms you can use.

If the problem continues may I suggest you please clear all the cookies and cache and log out of all accounts and log in once again which should resolve the issue.

Still, if the problem persists give a try by attempting the same in a different browser which should do the trick.

Also, I would suggest you raise a support case with Salesforce support team which might help.

You may reach Salesforce support at the below email address. Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
V D 1 8V D 1 8
Hi Nagendra,

Thanks for your response.

I know which particular line of code is causing the issue.

It is exactly this one:

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

According to the link below this was a known issue and supposed to be fixed. 

https://success.salesforce.com/issues_view?id=a1p30000000T1FnAAK

Can you please explain what are possible reasons for experincing a bug which is already fixed?

VD.