web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Prevent files from dup...
Power Automate
Unanswered

Prevent files from duplicating when automatically moving them into folders

(0) ShareShare
ReportReport
Posted on by 15

The idea is that I am going to drop a bunch of files into the SharePoint folder, in this case I dropped two 

overhead_press2_0-1621123367368.jpeg

 

Then the flow will automatically generate a bunch of folders based on the beginning of the file names and place them into the corresponding folders.

overhead_press2_1-1621123367367.png

 

Below are the two folders that are created from dropping the two files. The issue I am experiencing is that all the files are being duplicated in each of the folders when there should only be one file in each of the folders that has the matching name:

overhead_press2_2-1621123367418.png

 

overhead_press2_3-1621123367497.png

 

 

What is wrong with my flow below and how can I change it so that only the correct file shows in each of the folders? (Ex. file "J0000-1002_.......PDF" only shows in folder "J0000-1002". Thanks in advance! 

overhead_press2_4-1621123367421.png

 

overhead_press2_5-1621123367509.png

 

overhead_press2_6-1621123367422.png

 

Let me know if you need clarification on the flow, thanks! 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at
    Re: Prevent files from duplicating when automatically moving them into folders

    Hey @overhead_press2 

     

    Your screenshots are too small and low resolution, but If I understand correctly you have an apply to each loop - and the create action is inside the loop. Can you try using the Create action outside the "apply to each loop.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard