Error subscribing to me/events on Microsoft Personal account

Simon Steele 1 Reputation point
2021-07-28T05:21:25.027+00:00

I have a Microsoft Personal account that I am trying to subscribe to changes to me/events. We are having issues in our application, so I tested the same via MS Graph Explorer and got the same result.

POST to https://graph.microsoft.com/v1.0/subscriptions

{
    "changeType": "created,updated,deleted",
    "notificationUrl": "https://{endpointURL}",
    "resource": "me/events",
    "expirationDateTime": "2021-07-31T09:43:31+09:30",
    "clientState": "{secret}"
}

and getting the response:

{
    "error": {
        "code": "ExtensionError",
        "message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '00037ffe-adc9-9a62-0000-000000000000' hosted on database 'b46019aa-d1a8-42c1-b34f-9e8e5c3dfe58' is currently on backend 'Unknown']",
        "innerError": {
            "date": "2021-07-28T05:01:48",
            "request-id": "c5047d6f-4913-49ca-94a6-c5b98d853b3a",
            "client-request-id": "3751b240-e33a-6323-b6ad-cbfa0a9b5f6c"
        }
    }
}

If I use the following, I do get the calendar events returned successfully:
https://graph.microsoft.com/v1.0/me/events

I have granted Calendars.Read (and Calendars.ReadWrite) to Graph explorer.

What does this error mean and how can I subscribe to event changes for the Microsoft Personal account.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,575 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Simon Steele 1 Reputation point
    2021-07-28T05:38:12.093+00:00

    Actually on a deeper investigation, it may be that this "Microsoft Personal" account is in fact not an email account hosted with Microsoft, but merely an account.
    If I login to www.outlook.com I can sign in with this Microsoft Personal account, but I see in the profile menu it's got "Outlook_{BUNCH OF CAPITAL LETTERS}@harsh.com .com".
    So i'm thinking this Microsoft Personal account is not in fact linked with a valid Outlook account and so doesn't have access to a calendar.
    Would that sound right?

    So this leads me to think that there's an issue with the /subscriptions endpoint actually - because by virtue of the fact that this user does actually have an outlook calendar (if I go in via www.outlook.com), and I can see the events in the calendar using MS Graph Explorer if I go via /me/events... but it's just that the /subscriptions endpoint is not finding the correct calendar.

    0 comments No comments

  2. Alex 1 Reputation point
    2021-12-16T00:02:53.917+00:00

    @Simon Steele any update on this? I'm facing the same issue

    0 comments No comments