none
Outlook Rest API 410 - SyncStateNotFound (Not passing in initial token) RRS feed

  • Question

  • Similar to https://social.msdn.microsoft.com/Forums/office/en-US/956446a4-2262-44e1-be91-bd5846c49897/outlook-rest-api-410-error-syncstatenotfound?forum=Office365forDevelopers but different in that I am not supplying the initial token (generation 1) and seeing this error. I am giving a token that the system seems to think is a generation ahead of the highest one

    Request:

    GET https://outlook.office.com/api/v2.0/me/calendarView?startDateTime=2018-03-13T22%3A26%3A58.578Z&endDateTime=2069-03-13T22%3A26%3A58.578Z&%24deltatoken=v6ATBEl7tHZPqXpMoGdSGXQtPogAAQnMoNMGAAAA
    Authorization = Bearer REDACTED
    Prefer = odata.track-changes
    Prefer = odata.maxpagesize=50
    Content-Type = application/json
    Accept = application/json

    Response: 

    410/https://outlook.office.com/api/v2.0/me/calendarView?startDateTime=2018-03-13T22%3A26%3A58.578Z&endDateTime=2069-03-13T22%3A26%3A58.578Z&%24deltatoken=v6ATBEl7tHZPqXpMoGdSGXQtPogAAQnMoNMGAAAA
    Cache-Control = private
    Transfer-Encoding = chunked
    Content-Type = application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
    request-id = bab3bfe9-e596-4c8c-bc1f-90ef0cc19705
    X-CalculatedFETarget = MWHPR13CU002.internal.outlook.com
    X-BackEndHttpStatus = 410
    X-FEProxyInfo = MWHPR13CA0047.NAMPRD13.PROD.OUTLOOK.COM
    X-CalculatedBETarget = MWHPR2201MB1056.namprd22.prod.outlook.com
    X-BackEndHttpStatus = 410
    X-RUM-Validated = 1
    x-ms-appId = 450987b3-a09a-4f14-9b2c-4f301d1e15f5
    Rate-Limit-Limit = 10000
    Rate-Limit-Remaining = 9807
    Rate-Limit-Reset = 2019-03-13T22:27:28.294Z
    OData-Version = 4.0
    X-AspNet-Version = 4.0.30319
    X-BeSku = WCS5
    X-DiagInfo = MWHPR2201MB1056
    X-BEServer = MWHPR2201MB1056
    X-FEServer = MWHPR13CA0047
    X-Powered-By = ASP.NET
    X-FEServer = MN2PR15CA0011
    X-MSEdge-Ref = Ref A: 918413B6356E45D586D204C40C5C996B Ref B: BLUEDGE1008 Ref C: 2019-03-13T22:26:58Z
    Date = Wed, 13 Mar 2019 22:26:57 GMT
    
    {"error":{"code":"SyncStateNotFound","message":"The sync state generation is not found; generation=6;[highest=5][4][5][3]."}}

    The point of interest being: "The sync state generation is not found; generation=6;[highest=5][4][5][3]".

    Not sure how the generation of the token I am supplying (6) could be higher than the "highest" generation (5). The solution so far has been to delete the token I have and resync from initial but I was wondering if anyone had anymore information about if this is expected/how I could handle it better

    Thanks


    Friday, March 22, 2019 6:04 PM