question

PranavGhosh-8323 avatar image
0 Votes"
PranavGhosh-8323 asked Danstan-MSFT commented

Unable to update event with the new set of attendees using MS Graph API

Through custom SPFx calendar web part, end user has the option to click on the event accept button. After clicking on the accept button, user is added as an attendee in the existing list of attendees and then after the wait of 20 seconds, response status is changed to Accepted using MS Graph API. While adding the user as an attendee, first we are connecting to the organizer's calendar, fetching the event details along with the attendee list. In the existing attendee list object, current user data is added and with this latest attendee list object we again connect to the organizer's calendar to update the existing attendee list to the latest object. As the attendee list object is large (1000+ users), updating the event object with latest attendee list throws error -

Microsoft.Graph.ServiceException: Code: tooManyRetries
Message: More than 3 retries encountered while sending the request.
at Microsoft.Graph.HttpProvider.<SendRequestAsync>d_19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.HttpProvider.<SendAsync>d
_18.MoveNext()

microsoft-graph-calendar
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The retries error may not be the real error, There may be an underlying error that triggers the retries. I see that event resource type docs states a limit of 500 for attendees on an event. This can be the reason you get errors because you mentioned 1000 attendees.


0 Votes 0 ·

0 Answers