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 connectors,...
Power Automate
Answered

Sharepoint connectors, copy file or move file, URI encoding issue?

(1) ShareShare
ReportReport
Posted on by 39
Hi all, I am trying a simple flow to grab a file in one folder (user's scans) and move it to another folder on sharepoint (team scans).
 
The destination folder has a space in the folder name. That's their naming conventions and it isn't going to change.
 
I am drawing this error when the copy or move command attempt to execute (output):    
 
"body": {        "status": 400,        "message": "Failed to verify the existence of destination location at 'https://xxxxxxxxxxxx.sharepoint.com/sites/MYSITE/PROJECT NAME/SCANS' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\nserviceRequestId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"    }}
 
 
Note that the error refers to the location as a link, and it has a space between PROJECT and NAME.
 
 
I encoded the path in a compose action:  encodeUriComponent(concat(item()?['{Name}'], '/Scans'))   but I still get this error.....
 
 
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi,
     
    Please try adding a %20 in your URI then.  PROJECT%20NAME
     
    NORMALLY though, when a SharePoint site is created, even if the display name has spaces in it, such as My Cool Project, the actual site URL is MyCoolProject.  Have you tried it without the space?  Such as PROJECTNAME?
     
    Last way to figure this out.  Do a quick get items action, point to your site and a list there and look at the output.  Here you will see exactly what the URL is.  100%

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard