web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard