Failed creating events subscriptions: Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource 'xxxx' hosted on database 'xxxx' is currently on backend 'Unknown'

Reinier Millo 5 Reputation points
2024-03-25T06:30:00.18+00:00

Hi, I'm trying to subscribe to the calendar events to listen when user create or update an event. Just calling POST on https://graph.microsoft.com/v1.0/subscriptions with the following body

{
    "changeType": "created,updated",
    "notificationUrl": "https://mi-domain/calendar/microsoft/",
    "resource": "me/events",
    "expirationDateTime": "2024-03-26T18:23:45.9356913Z",
    "clientState": "state-token"
}

Currently the expirationDateTime is respecting the maximum limit of 3 days, I'm using 2 days.
When I run this on my service in Python or using the Graph Explorer get this error

{
    "error": {
        "code": "ExtensionError",
        "message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '0003bffd-6271-34ad-0000-000000000000' hosted on database '86eaab21-15e5-4e4b-9d1c-2342c9c45663' is currently on backend 'Unknown']",
        "innerError": {
            "date": "2024-03-25T06:20:57",
            "request-id": "811d03f8-1898-4c04-afe6-c64866c7de25",
            "client-request-id": "14a6b561-a648-d16a-66bf-b896c4627c5d"
        }
    }
}

Currently the access token that I'm using has the following scopes

Calendars.Read Calendars.ReadBasic Calendars.Read.Shared

I have been reading about this problem but there is not a concrete solution or explanation about the errors that I can be making during the request.

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

2 answers

Sort by: Most helpful
  1. Reinier Millo 5 Reputation points
    2024-04-03T13:38:29.7666667+00:00

    My problem was solved and was related to the shared scopes that I was requesting and also used for testing a corporate account without an active plan.

    1 person found this answer helpful.
    0 comments No comments

  2. Reinier Millo 5 Reputation points
    2024-04-03T13:40:50.7333333+00:00

    My problem was solved and was related to the shared scopes that I was requesting and also used for testing a corporate account without an active plan.

    0 comments No comments