OneNote graph API results lag behind current state

Mark Ward 15 Reputation points
2023-01-26T19:17:46.8366667+00:00

I am calling the OneNote Graph API to list the pages in a section. The pages returned are not in the current state of the section. The OneNote desktop application on two different computers displays the current state of the section. The Graph API is returning old information. It takes over ten minutes or a certain action before returning current results. I am using Graph Explorer and JavaScript to call the API. The OneNote desktop clients display changes within a short time. It seems that the OneNote desktop app can query more current results, and the Graph API is limited to cached data.

Is this a case of eventual consistency?

These are descriptions of the API lagging results

I have a section with nine pages in it.

The Graph Explorer, JavaScript app, and OneNote app display all nine pages. In OneNote I deleted eight pages. A different computer with OneNote desktop app soon reflected this change. The OneNote Graph API continued to return the nine pages. The Graph API returned the nine pages for about 30 minutes. Eventually, the Graph API returned the current status of the section.

While awaiting the Graph API to return one page for the section, I decided to create a page using the Graph API. After creating the page, both OneNote desktop applications were updated and showed the newly added page. The Graph API continued to return the previous state. It took over ten minutes for the Graph API to return the newly added page.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,489 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-01-26T19:55:38.3266667+00:00

    Hahaha

    0 comments No comments