HTTP 410 status error on syncing contacts

Amin Bagheri 1 Reputation point
2021-12-02T15:38:25.503+00:00

Hi, I used the Microsoft graph to sync my contacts, but some time while I'm in syncing within a sync token, I get a HTTP 410 error code. How to handle this issue?

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

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 5,946 Reputation points
    2022-03-18T16:02:42.463+00:00

    Hi @Amin Bagheri

    Http 410 error occurs when requested resource is no longer available at the server.
    There may be cases when the service can't provide a list of changes for a given token (for example, if a client tries to reuse an old token after being disconnected for a long time, or if server state has changed and a new token is required).

    This is an indication that the application must restart with a full synchronization of the target tenant. This usually happens to prevent data inconsistency due to internal maintenance or migration of the target tenant.

    Delta tokens are only valid for a specific period before the client application needs to run a full synchronization again.
    For Outlook entities (message, mailFolder, event, contact, contactFolder, todoTask, and todoTaskList), the upper limit is not fixed; it's dependent on the size of the internal delta token cache. While new delta tokens are continuously added in the cache, after the cache capacity is exceeded, the older delta tokens are deleted.

    Reference

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    0 comments No comments