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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,043)