Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

(0) ShareShare
ReportReport
Posted on by 249

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?

  • matteomessmer Profile Picture
    9 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    Does anyone have any idea whether it can be solved? Has a ticket ever been opened in microsoft? It's quite an annoying bug

  • ScottT2 Profile Picture
    14 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    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!

  • Mattw112b Profile Picture
    1,084 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    I am having same issue and have verified the name before the $ is fine.

  • v-lin-msft Profile Picture
    728 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    Hi @cooper33 ,

     

    I have made a test on my side and the flow works well, and I also reproduce your problem.

    Succeed:52_1.png

    Failed:52_2.jpg

    "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.

  • cooper33 Profile Picture
    249 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    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

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    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: CreateOneNoteSection-String.png

    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!

  • cooper33 Profile Picture
    249 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    Here is my Flow configuration (simplified from original) and also the error details

    FlowConfig.PNGFlowError.PNG

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    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!

  • cooper33 Profile Picture
    249 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    Thanks for the suggestion. Still getting the same error

  • Brad_Groux Profile Picture
    4,556 on at
    Re: Error; the requested notebook or section may have been deleted or is otherwise inaccessible.

    Try removing and re-adding and/or refreshing the connection to OneNote from within the Flow Connections page. Connections.png

    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.OneNoteConnectionRefresh.png

    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. OneNoteChooseAccount.pngFinally, 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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1