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 / Issue in Powerautomate...
Power Automate
Answered

Issue in Powerautomate- error msg 400- Root folder is not found

(0) ShareShare
ReportReport
Posted on by 10

Hello,

I have a requirement in Power automate to upload files in Sharepoint regularly. We have created a Shared mailbox and when any email with attachment gets into inbox, then the attachment should be added into respective path or library based on the attachment name.

 

File name

Site

Folderpath

EV1

https://org.sharepoint.com/sites/HR

/Test%201/Folder

EV2

https://org.sharepoint.com/sites/SC

/Test%202/Folder

EV3

https://org.sharepoint.com/sites/IT

/Test%203/Folder

EV4

 https://org.sharepoint.com/sites/Bus

/Test%204/Folder

EV5

https://org.sharepoint.com/sites/Projects

/Test 5/Folder

 

 

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We have a condition, if Attachment name matches with any of the file name in excel, then a file should be created in Sharepoint. Site url and Folder Url will be picked from the excel columns.

But when there is a space in folder name or library name, url will have %20 (Test%205) for space or any other character for '_'. Then the flow gives error message

status":400,"message":"Root folder is not found.\r\nclientRequestId: 6363c88d-3e42-4b33-ba1c-78a827c5b0e5\r\nserviceRequestId: 6363c88d-3e42-4b33-ba1c-78a827c5b0e5"}}

 

But when I put space instead of %20 in the excel column(for example Test 20 ) it works normally without any error.

Can someone kindly help me with this?

 

Is there a way to upload file to respective path like can we mention it in Sharedemail used to add file to Sharepoint, so that it will pick directly from email body or subject ?

 

Regards,

Susmitha.

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Susmitha95 ,

     

    You could consider using the 'replace' action to replace the %20 with ' '. For example:

     

    replace(replace(FilePath,'%20',' '),'_',' ')

     

    Best Regards,

    Bof

  • v-bofeng-msft Profile Picture
    on at

    Hi @Susmitha95 ,

     

    Is the problem solved? Do you need any help?

     

    Best Regards,

    Bof

  • Susmitha95 Profile Picture
    10 on at

    Hi,

    Thank you for the reply and apologies for the late response.

    This solution worked for me and thanks a lot for your response.

     

    Regards,

    Susmitha.

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard