web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create File in SharePo...
Power Automate
Answered

Create File in SharePoint - Root Folder is not found Error

(0) ShareShare
ReportReport
Posted on by 126

Hello,

 

I have an automation that is supposed to create files and is showing an error message. Please find the automation flow, the folder pathway, and the error message attached (note: certain parts blacked out for client confidentiality - but know that both pathways are identical).

 

FlowPt1.png

FlowPt2.png

NewPath.png

 

Flow_CreateFileError.png

 

The following message shows under 'Error Details': 

Root folder is not found.
clientRequestId: ba9b8130-52e7-4fd9-829a-5d4fecb1d4ca
serviceRequestId: ba9b8130-52e7-4fd9-829a-5d4fecb1d4ca

 

What do I need to change? Looking for advice.

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @chinda .

    I dont think you providing the folder id yourself is the correct technique.

    Just make a new folder every time. The ID you get after adding the new folder action, use that ID to create file. I think because you are giving it your defined ID is giving you an error. 

     

    Sundeep_Malik_0-1662533061307.png

     

    I hope this helps. Any doubts you can reply. 

  • chinda Profile Picture
    126 on at

    I am a bit confused, so instead of providing the FolderID in the 'Id' portion of Get attachments, what would I do instead?

  • Sundeep_Malik Profile Picture
    6,484 on at

    Maybe Identifier....

  • chinda Profile Picture
    126 on at

    The error details says my issue is that the Root Folder is not found, so I do not think that would help to change it. 

     

    Do you know how else I could fix it? Both folder orders are the same. 

  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @chinda ,

     

    Maybe you could try to replace 'Documents' in 'Create file' Action with 'Shared Documents'.

    vyujincuimsft_0-1662626983933.jpeg

    vyujincuimsft_1-1662627035585.png

     

     

    Best Regards,

    Charlie Choi

  • joelbicoypro Profile Picture
    20 on at

    Document Library permission was the cause in my case, since i was trying to share the automation with an external/guest user:

     

    reference: https://techcommunity.microsoft.com/t5/sharepoint/external-user-access-to-the-sharepoint-online-library-howto/m-p/2109580

     

    To give an external user access to an entire SharePoint online library requires the following:

    • URL of the library that needs to be shared
    • Email address of the external user

    Then you need to 

    1. For the 365 tenant check Azure active directory, to see if the external user already has a Guest account (if you can't do the following steps, you can share just one file from the library with the user, have them view it, and this creates the Azure account, once they've done it).
      1. go here

        https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/MsGraphUsers

      2. search for external user email address
      3. if the user doesn't exist then click the "new guest user"
        1. choose invite user
        2. the external user will get an email, they have to click the "Accept invitation" link at the bottom
      4. in Azure AD you'll see that their account now says "invitation accepted" = Yes
        1. I ask the user to let me know that they've been redirected to myapplications.microsoft.com
    2. Now that the account exists you can share the library with it
      1. Go to the library URL , click the cog, click Library settings link
      2. click "Permissions for this document library"
      3. click "Grant permissions"
      4. click "invite people", enter the external user's email address, it should then resolve to the first name lastname from Azure AD
        1. click "show options"
        2. select the options you need this user to have 
      5. click Share
    3. The user will get another email, that has a link to the library and they should have access.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard