cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArshUser
Helper II
Helper II

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

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!

 

3 REPLIES 3
fchopo
Super User
Super User

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

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
ArshUser
Helper II
Helper II

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
Super User
Super User

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

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,362)