Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Trouble with Move or Copy SharePoint File Action with Dynamic Site and Static Folder

(0) ShareShare
ReportReport
Posted on by 9

I am having trouble with the Move or Copy File Action when the destination is a Dynamic Site and using the default Shared Documents library. The flow takes metadata from a SharePoint list and creates a word document from a template using quick parts. Originally I was doing this with an HTTP request but my users informed me they sometimes need to put quotes in the description field which messes up the JSON formatting in the HTTP request. To overcome this I now create the file in a Static Site and library so I can use the Update File Properties action and want to copy it out to a dynamic site. Every time I try to Copy or Move the file with the built in Flow Actions I get the following error about the destination folder:

"status": 400,
"message": "Failed to verify the existence of destination location at 'https://#####.sharepoint.com/sites/Projects/Test 4/Shared Documents/' due to error
'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId:
0902a3fb-eced-4d00-9a32-b1e876e65ade\r\nserviceRequestId: 0902a3fb-eced-4d00-9a32-b1e876e65ade"

 

I have attached a screen shot of the Action Configuration and the runtime error. I am hand typing "/Shared Documents/" into the Destination Folder field since it is not available as dynamic content. Any ideas how I can get this to work would be greatly appreciated.

Snag_24ea3.pngSnag_16284cb4.png

  • Anya Profile Picture
    6 on at
    Re: Trouble with Move or Copy SharePoint File Action with Dynamic Site and Static Folder

    I had the same problem and removing the last '/' solved it

  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on at
    Re: Trouble with Move or Copy SharePoint File Action with Dynamic Site and Static Folder

    Hi @stevewest 

    You need to erase the last /  like this "/Shared Documents" instead "/Shared Documents/"

  • Verified answer
    DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Trouble with Move or Copy SharePoint File Action with Dynamic Site and Static Folder

    Hi @stevewest 

     

    You are very close , you should try  "/Shared Documents" instead "/Shared Documents/"

     

    Thanks,

    ——————————————————
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow