title: Microsoft graph API for getting OneNote pages not working
body: <p>I am trying out the OneNote APIs on the <a href="https://developer.microsoft.com/en-us/graph/graph-explorer" rel="nofollow noreferrer">Graph Explorer</a>. I logged into my company account and clicked the GET request under &quot;Sample queries &gt; OneNote &gt; my pages&quot;. After a while, on the right panel where the result was displayed, I got the following in the &quot;Response Preview&quot; together with a &quot;Unprocessable Entity - 422 - 6580ms&quot; error box:</p>
  <pre><code>{
      &quot;error&quot;: {
          &quot;code&quot;: &quot;20258&quot;,
          &quot;message&quot;: &quot;Sync of this section is not supported. Detailed error information: Getting Section&quot;,
          &quot;innerError&quot;: {
              &quot;date&quot;: &quot;2020-06-22T19:44:16&quot;,
              &quot;request-id&quot;: &quot;cc019b4e-32fd-438a-b8ab-480b8a493784&quot;
          }
      }
  }
  </code></pre>
  <p>Additional information:</p>
  <ul>
  <li>The 'my notebooks' and 'my sections' APIs are both working.</li>
  <li>I am aware of <a href="https://stackoverflow.com/questions/59398292/onenote-api-fails-with-code-20258-graphclient-usersuserprincipalname-onenote">this post</a>, but the situation is not applicable.</li>
  <li>My company has recently gone through a network content to OneDrive migration, which I am not sure if is relevant to this issue.</li>
  <li>I notice that I can access a 'My Notebook&quot; note book from the APP/web APP book list, which is not listed under the OneDrive/Notebooks folder. In addition, this &quot;My Notebook&quot; is different from another note book called &quot;My Notebook @ Company&quot;.</li>
  <li>There is a 'MyName @ Company' notebook that I have already opened in the 'OneNote for Windows 10' app. However, when I click the 'More Notebooks...' link, I can see another notebook of the same name listed, whose last used is a month ago, definitely not the last time I edited the notebook already in the app. If I check this same-name notebook and try to open, I get an error saying 'Sorry, we couldn't open the notes that you were looking for. OneNote may still be syncing them, you may not have permission to open them, or they may have been moved or deleted.' I am not sure if this is the same cause to the API query issue, because it also talks about syncing and feels like some corrupted state. The notebook has a sharepoint link like this 'https://company-my.sharepoint.com/personal/myname_company_com/Documents/MyName @ Company', which I couldn't really open.</li>
  </ul>
  <p>Anyone from Microsoft can help?</p>