You need to sign in to do that
Don't have an account?
Alexey@Yoxel
REST API 500 Server Error when adding an Event attendee (EventRelation)
We're getting the following error from the REST API when adding an EventRelation (attendee + relation at the same time) for an existing Event
That is the only user/Org where we experience this. Hundreds of others are syncing fine.
500 Server Error
[{"message":"An unexpected error occurred. Please include this ErrorId if you contact support: 1396712998-62135 (381812194)","errorCode":"UNKNOWN_EXCEPTION"}]
Can the Salesforce development team look into this please?
That is the only user/Org where we experience this. Hundreds of others are syncing fine.
500 Server Error
[{"message":"An unexpected error occurred. Please include this ErrorId if you contact support: 1396712998-62135 (381812194)","errorCode":"UNKNOWN_EXCEPTION"}]
Can the Salesforce development team look into this please?
https://developer.salesforce.com/blogs/engineering/2015/02/gack.html
but my partner support does not know what to do. What do we do?
The event itself may have an attachment but this specific operation does not update the event, it simply refers to it through EventRelation.EventId.
This Org also has Platform Encryption turned on. I wonder if that breaks anything internally.
Our sync service runs hourly fo this user and tries to add attendees for a bunch of events. Here are more ErrorIds. Are they essentially all the same? 278636535-44273 (381812194), 1111500670-51708 (381812194), 502311785-47077 (381812194), 1207520037-49854 (381812194), 286898813-53530 (381812194), ...
Thank you
If they are an invitee and it's an insert we include the Event's attachments, it's here that we are hitting the RuntimeException.
e.g, Inserting this EventRelation results in a call to get all attachments of the Event 00Uxx000000fTLA
EventRelation er = new EventRelation(EventId = '00Uxx000000fTLA', RelationId = '003xx000004TmVt');
insert er;
Like Gordon said, it's likely there's a corrupt attachment on the Event Object in question.
We'll check your hypothesis but I don't believe the attachments are corrupt. After all, event creation with attachments works fine. It's adding an attending to an earlier created event that fails. I wonder if Salesforce platform itself makes them corrupt with the Platform Encryption feature in play.
Thank you
We can load them back from the event via API, without any errors, using GET .../sobjects/Attachment/<id>/body
Would you be able to examine this case closer if we prepare a curl request for you?
If that doesn't work I will ask the Platform Encryption product owner for help.