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 / Copying Files and Fold...
Power Automate
Answered

Copying Files and Folder to Another Location - Getting Copy of Files in Root Location

(0) ShareShare
ReportReport
Posted on by

All,

In the following Power Automate - I am copying files from one document library to another.
This works fine with the exception that in the target location when folders are involved it copies
the folder and the contents but also adds a second copy of the files on the root location:

I tried the following as described here which doesn't work so looking for other ways to solve this:

https://tomriha.com/how-to-copy-sharepoint-files-including-folder-structure-in-power-automate/

powerautomate_copysync_1.jpgpowerautomate_copysync2.jpg

Categories:
I have the same question (0)
  • Verified answer
    Unknown geen idee Profile Picture
    1,757 on at

    Dear K,

     

    You are doubling up on your loops ... you loop through your first 'Get items' and then you loop again through your 2nd 'Get items (properties)', resulting in duplicates. Ensure you only loop through the items once and you are good.

     

    Happy flowing,

    Koen

  • Verified answer
    koneill2020 Profile Picture
    on at

    Thanks - for the tip that first Get Items is reading from a list so it's needed I believe as I set-up a list to possibly if needed copy to multiple locations as outlined here: Copy files between multiple SP libraries in a single Power Automate flow (tomriha.com) 

    koneill2020_0-1684504468321.png

    that first loop is reading from the Source locations:

    koneill2020_1-1684504826831.png

    Therefore - any suggestions for where in the process this needs moved to so that I don't get duplicate folders in the target.

  • CO-20021647-0 Profile Picture
    2 on at
    I know this is an old post, but did you ever solve this? I have the same problem.

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