Skip to main content

Notifications

Community site session details

Community site session details

Session Id : CZvSsQpZem65HyXObcBWDM
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 16 Jul 2020 20:23:41 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.

  • Verified answer
    v-alzhan-msft Profile Picture
    on 28 Jul 2020 at 02:00:01
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    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.

  • sarahpoulin Profile Picture
    47 on 17 Jul 2020 at 14:51:24
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    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.

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 17 Jul 2020 at 14:33:44
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    @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 17 Jul 2020 at 14:31:46
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    I'm not sure I understand your last response.

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 17 Jul 2020 at 14:29:09
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    @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 17 Jul 2020 at 13:26:50
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    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?

  • v-alzhan-msft Profile Picture
    on 17 Jul 2020 at 05:03:48
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    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 16 Jul 2020 at 20:49:54
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    Current Step.png

    RunHistory.png

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 16 Jul 2020 at 20:41:58
    Re: Copy File: "The destination path cannot be the same as the source object itself."

    @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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard