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 / SharePoint Copy Folder...
Power Automate
Suggested Answer

SharePoint Copy Folder action fails when "+" is in folder name

(0) ShareShare
ReportReport
Posted on by 17
I'm working to automate a process of moving a folder (with a nested folder/file structure) from one SharePoint Online site to another. It works fine unless there is a plus sign (+) in the name of the folder being copied. Error is "Failed to verify the existence of source object at..." with the path of the folder where the plus sign has been replaced with a space. This happens even if I manually replace the + character with a %2B in the source variable for the "Folder to Copy" parameter.
 
Anyone have any thoughts on how to overcome this or do you think it's a bug in the Copy Folder action?
 
Example of full error message (folder name is "Test + Test"):
{
  "status"400,
  "message""Failed to verify the existence of source object at 'https://xxx.sharepoint.com/sites/xxxx/Shared Documents/Test   Test' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: 6cf65687-6fdd-41a0-8b73-b06e12e02322\r\nserviceRequestId: f44e7ca1-e0cd-7000-d45b-07b4d0aeea2e"
}
From the failed run:
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi @ToddC
     
    I tried to copy  a folder to another folder having + in folder name - it worked fine for me 
     
    see below
     
     
     
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

    ​​​​​​​
  • ToddC Profile Picture
    17 on at
    Nived... that's odd. I thought at first it might have had something to do with passing the parameter as a variable instead of hard-coded, but when I tested it as a hard-coded value I still get that error. I wonder what the difference is?
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    It is working for me still when i tried simmilar parameters as yours. Do one thing- just delete the copy file action and add it again - see whether that works up ?
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • ToddC Profile Picture
    17 on at
    So did some more testing and determined what the difference is:
     
    If you use the file picker to select the specific folder with a plus in the file name, it works. If you type it in manually or use a variable to set it, it fails because it replaces the plus with a space.
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    ok got it, i thought that by hardcoding the path - you have selected the file using file picker option.
     
    Then in that case - i would recommend using file identifier option as dynamic content for source folder option in copy folder action. see below
     
    1. Used get files action to get details of folder to be copied using filter query
     
    2. Next used apply to each loop to loop through the results as shown below
     
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • Suggested answer
    RedSnow_94 Profile Picture
    32 on at
    I had a similar issue when retrieving a list of files within a folder. I had used the function "encodeUricomponent" but still got issues. If you use the function twice however, i.e. encodeUricomponent(encodeUricomponent(file path with + in it)) it accounts for this.
     
    Worked in my case at least, not sure if its applicable when copying folders....

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