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 / 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
    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
    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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard