I am using the OneNote action Create section in a notebook but cannot get the Notebook to connect to the Flow. The error is Action 'Create section in a notebook 2' failed and the error details are the requested notebook or section may have been deleted or is otherwise inaccessible. I am choosing the Notebook Key parameter from the dropdown. All my notebooks are in a SharePoint library and I can see them all. This is failing for multiple notebooks. Trigger action is When an item is created. In the error details, the Notebook key looks good: Name of my Notebook|$|https://contoso.com/sites/accounting/Shared Documents/Name of my notebook
Any suggestions?
Does anyone have any idea whether it can be solved? Has a ticket ever been opened in microsoft? It's quite an annoying bug
This seems to be a know issue with the OneNote actions. I've done some testing. It fails for newly created Notebooks. But in my testing it will eventually work after some hours... not sure the exact time frame.
I also verified this by running the Get Recent Notebooks action. I created a notebook. Ran a flow with this action and that notebook is not in the array of notebooks that is returned. I ran it again the next day and it was there.
So this is def a bug... as typical with Microsoft!
I am having same issue and have verified the name before the $ is fine.
Hi @cooper33 ,
I have made a test on my side and the flow works well, and I also reproduce your problem.
Succeed:
Failed:
"message": "Error; the requested notebook or section may have been deleted or is otherwise inaccessible."
According to these two screenshots, we can see that your problem may be that you filled in the wrong name of Notebook, so the Key of Notebook is wrong. Please make sure that the name of Notebook before '[$]Https' is correct, and then try it again.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have also tried initializing a variable (string) and setting it to text value, then plugging the value into the Title section which did not change the error I got
The Flow is working when I create a new Notebook and add the section there. But not with my original notebook which is where I want to create the section
If you'll review the OneNote Connector documentation, you'll notice that the Create a Section in a Notebook action require that the Name of the new section be a string. Currently, it looks like you are putting in the plain text of Test, which would not be a string. So, you should either pass in Dynamic content like the Name or ID parameter from the When an item is created trigger, or you need to covert your text to a string using an expression.
I just created and ran the following test Flow without issue:
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Here is my Flow configuration (simplified from original) and also the error details
If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving, we could likely better assist you. Obviously, you'd want to redact any personal information from the screenshot before sharing - but the more information we have, the better.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Thanks for the suggestion. Still getting the same error
Try removing and re-adding and/or refreshing the connection to OneNote from within the Flow Connections page.
You can do so by clicking the ellipsis (...) for the OneNote connection (red circle), and then selecting Switch Account to re-login, or to Delete to completely remove the connector (red box). If you choose to Delete the connector, you would simply re-add it as you normally would.
Then, in your Flow, click the ellipsis (...) for the OneNote step or steps (red circle), and verify that you have the correct account selected under the My connections heading. Finally, if you are still having issues, insure once more that the account(s) that you are trying to use within the Flow have full read/write access to the SharePoint team site(s) where the OneNote notebook(s) is.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2