Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Move or rename file using path - "The specified item name already exists"

(0) ShareShare
ReportReport
Posted on by 78

Hi,

 

So I have created a Microsoft form which allows users to attach multiple documents in the response. I created a flow where I used "When a new response is submitted" trigger to move the attached files over to different folders.

 

With some files, my flow throws an error "The specified item name already exists". (Only with some files even when attaching multiple!)

 

As you can see from the my flow, I am creating dynamic folders based on the response ID so I don't see a reason for the file to "already exist"!

 

 

ArshUser_1-1646981181278.png

 

PS: I tried filling in the form (multiple times with same 3 files) and attached 3 documents named: sample1.xlsx, sample2.xlsx, pic1.png

It always throws this error for "sample1.xlsx" and never on the other files.

 

I would really appreciate some help with this.

 

Thankyou!

 

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Move or rename file using path - "The specified item name already exists"

    Is the "name" attribute you're using the name of the file? Could you append response_id to file name when moving the file? In this way probably you can avoid the problem

    Hope it helps!

    Ferran

  • ArshUser Profile Picture
    78 on at
    Re: Move or rename file using path - "The specified item name already exists"

    Hi @fchopo , 

     

    I tried this but again the same error occurs. Only sometimes though. When I re-run the flow the error goes away.

     

    But this isn't good enough for me as this flow will be triggered by other people in the organization. I really don't want the flows to fail.

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Move or rename file using path - "The specified item name already exists"

    Hi @ArshUser 

    Could you try to add a "delay" action after moving or renaming the file, for 5 seconds for instance? 

    Hope it helps!

    Ferran

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1