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 / Copy File: "The destin...
Power Automate
Answered

Copy File: "The destination path cannot be the same as the source object itself."

(0) ShareShare
ReportReport
Posted on by 47

I am trying to follow this tutorial, and my Copy File (step 3) fails. When I open the run history, it says, "The destination path cannot be the same as the source object itself." For "If another file is already there" it shows a 2 in the run history. I assume that the 2 is supposed to represent me picking the option "Copy with a new name," but I am not sure if the 2 means that, or if maybe it's a bug.

 

If I change the the folder, then it fails for step 7, Get File Content. I am very new to this and noticed in the comments on the tutorial that someone else had the exact same issue, but their question is unanswered. Hoping someone more knowledgeable can chime in.

Categories:
I have the same question (0)
  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @sarahpoulin 

    Hi there.  Could you post a screenshot of your current step? and also the results of the run history for that step?

     

    Thanks!

    -Ed

     

  • sarahpoulin Profile Picture
    47 on at

    Current Step.png

    RunHistory.png

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @sarahpoulin ,

     

    It is the expected behavior, as the error message said,  we couldn't copy a file with the same source path and the destination path. please modify your flow with a different destination path so the flow would works.

    1.png

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • sarahpoulin Profile Picture
    47 on at

    What I'm wondering is, why does the tutorial show the same path? Is it something that Power Automate used to allow but no longer does?

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @v-alzhan-msft 

    Seconding that question as the action seems to have a way to account for duplicate filenames?  Thanks for the help.

  • sarahpoulin Profile Picture
    47 on at

    I'm not sure I understand your last response.

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @sarahpoulin 

    Sorry.  I was echoing your concern.  It seems like being in the same library shouldn't be an issue if we can account for duplicate filenames.  I'm still digging into it, but was hoping Alice had something about that.

  • sarahpoulin Profile Picture
    47 on at

    Ah, ok, thanks. Those were my thoughts exactly, which is why I was asking if perhaps it was a bug. I don't see why it won't allow me if it will rename the file with the same name.

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @sarahpoulin ,

     

    The function to copy a file to a same path with the Copy file action is not supported in Microsoft flow currently.

    I suggest you could take a try with the create file action.

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard