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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Gert file on same fold...
Power Automate
Unanswered

Gert file on same folder by 10 computers

(1) ShareShare
ReportReport
Posted on by 58

How to avoid error if I have 10 computers need pick up a file from same folder?

 

The folder contain a bunch of files need to process, I used [Get Files in Folder] to read every file detail and then used [For each] to loop every files name. Every computer have their own folder to store the pick up file from  [Get Files in Folder], andI used [on error] and [Go to label] to detect file picked by another computer, but still cannot avoid error.

 

Any idea to solve this issue, THX.

 

 

I have the same question (0)
  • trice602 Profile Picture
    16,491 Super User 2026 Season 2 on at

    Hi @hosino ,


    Can you share your flow here please with the relevant actions expanded?  On the surface, this sounds possible but really need to see some of the flow to troubleshoot.

     

     

  • hosino Profile Picture
    58 on at

    Thanks for your help, here is my flow.

     

    All computer use same workflow, line 51 to move the file to individual folder and added an on error when the file was picked by another computer then go back to line 44. Line 55 also added an error go back to line 44 when PAD cannot read the file in the individual folder.

     

    hosino_1-1695487592940.png

     

     

  • trice602 Profile Picture
    16,491 Super User 2026 Season 2 on at

    Hi @hosino ,

     

    Thanks for sharing!  One option to consider here is add a temporary folder to this flow.  In this scenario, I think that first your flow identifies which computer is running the flow with some dynamic variable, easy stuff - computer name, machine ID, etc. 

     

    Next after get files in folder, you move them to a temporary folder named /temp_processing/computerID/  and then process the files from that folder.

     

    When another computer runs this flow and they use get files in folder, the only files in the folder will be files not currently being processed by another computer/flow.

     

     

  • hosino Profile Picture
    58 on at

    Thanks for your advise.

    Yes, I used same approach, everything computer arranged their own tempoary folder to store the picked file.

    And added a on error instruection to move back Get files in folder again when the file was picked by another computer.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @hosino 

     

    Does this design mode helps you ?

     

    Nived_Nambiar_0-1695534015898.png

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • hosino Profile Picture
    58 on at

    Thanks sir, but when file not exists, how can I ask PAD go back to pick another file?

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @hosino 

     

    Then you can skip iteration (in other words do nothing) and let's flow go to next iteration and do the job if file exists for the next iteration , hope you got the idea 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @hosino 

     

    Then you can skip iteration (in other words do nothing) and let's flow go to next iteration and do the job if file exists for the next iteration , hope you got the idea 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • hosino Profile Picture
    58 on at

    I still cannot avoid PAD error with below flow, is there any comment to check the folder is empty or not?

     

    hosino_0-1695646314819.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    How about instead of Copy + Delete, you use Move file(s)? At that point it is much less likely for several computers to see the same file as still existing and proceeding to copy and delete it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 150 Super User 2026 Season 2

Last 30 days Overall leaderboard