question

MunnaKumar-0937 avatar image
0 Votes"
MunnaKumar-0937 asked MaggieRain-1837 answered

Internal Server Error Graph Api CalendarView

0


When i check with postman is working fine.

https://graph.microsoft.com/v1.0/me/events?$filter=iscancelled eq false and isorganizer ne false and (locations/Any(s:s/displayname eq 'abcd') )

When i want to get same result with Microsoft.Graph API using c#. Then giving an error.



             var queryOptions = new List<QueryOption>()
             {
                 new QueryOption("startDateTime", from.ConvertDateTimeToUtc(timeZone.WinTimeZone).ConvertDateTimeToUtcIso8601String()),
                 new QueryOption("endDateTime", to.ConvertDateTimeToUtc(timeZone.WinTimeZone).ConvertDateTimeToUtcIso8601String()),
             };var filtering="iscancelled eq false and isorganizer ne false and (locations/Any(s:s/displayname eq 'abcd') )";graphServiceClient.Users["emailaddress"].CalendarView .Request(queryOptions) .Filter(filtertring) .GetAsync();

'Error
{"error":{"code":"ErrorInternalServerError","message":"An internal server error occurred. The operation failed."}}'

Code: ErrorInternalServerError
Message: An internal server error occurred. The operation failed.
ClientRequestId: a945d124-53f0-4466-9cb2-2ce903e8a61d

When i removed the location from the filter it works.

var filtering="iscancelled eq false and isorganizer ne false";

graphServiceClient.Users["emailaddress"].CalendarView .Request(queryOptions) .Filter(filtertring) .GetAsync();




microsoft-graph-calendar
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.

1 Answer

MaggieRain-1837 avatar image
0 Votes"
MaggieRain-1837 answered

When I run a similar query, the response is an empty list, not the internal error you are experiencing.


Please share the request Id and the time stamp so that I can look into the logs, to find out more about the error you are experiencing.

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.