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 / The "Get files in fold...
Power Automate
Unanswered

The "Get files in folder" action works when logged in but not unattended

(0) ShareShare
ReportReport
Posted on by 139

Hello,

 

We have a desktop flow that runs fine when run locally in the dev environment, but that errors out when run unattended on the bot hardware.  The account that the flow runs under, while on the bot hardware, has been granted full rights to the network share but we are receiving this error:

 

Problem while executing action 'GetFiles'. Can't retrieve list of files in folder [the path].

 

Also, when logging in to the bot hardware, with the account that the flow runs under during the unattended runs, the flow runs without issue.  

 

Any idea what might be causing this?  Are there differences between manual runs of a desktop flow and those that occur automatically during unattended runs?

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Most of the time, when trying to use Network Drives unattended, the bot cannot see mapped network drives.  Therefore, instead of using N: in the flow, you have to use \\Network\.

     

    Hope this helps.  Good luck.

  • drake Profile Picture
    139 on at

    This helps, but the action is currently not using a mapped drive (it's using \\Network\)

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Here is a manual work around, apparently other people are having the same problem.  If CMD can see the drive, this will work:

    MichaelAnnis_0-1627583131703.png

     

    Short story, it uses command prompt to copy all files to the clipboard (that is the dir/b | clip command), pastes that into Excel, and then reads Excel to save the "ExcelData" as a list.  I tried "Get Clipboard Text" but it was just text, and couldn't convert it to a list, so the Excel steps are necessary to get all files as a list.

    Best of luck!

  • drake Profile Picture
    139 on at

    We learned that putting in a wait (5-10 seconds) before the "Get files in folder" action, along with setting this action to retry upon failure, resolved the issue.

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 271 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 171 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 148 Super User 2026 Season 2

Last 30 days Overall leaderboard