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 / "Error executing the A...
Power Automate
Answered

"Error executing the API" on File System connection

(0) ShareShare
ReportReport
Posted on by 433

I'm trying to get a first step connection working with Flow using the File System.

- I created a top-level folder on my local machine (c:\testfolder) and dropped a couple of files into it.
- I created a connection called "local-test".
- For Root folder, I used \\mymachine\testfolder. I assume that my machine can be accessed through the company gateway.
- For Authentication type, I used Windows.
- For Username, I entered my domain\username. I have also tried the format username@domain.
- For Gateway, I used a gateway that I have successfully used from PowerApps, though I was connecting to SQL, not my local machine.

 

It seems that an error flashed (too quickly to read). When I go back in, it didn't save the username.

 

The result is that, when trying to select a folder in File System in an Instand Flow for "List files in folder", I get "Error executing the api".  I expect I set up the connection incorrectly, or the Gateway was set up incorrectly.

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @akharns ,

     

    Yes, I afraid that there is any wrong for the connection or Gateway, please check the connection and Gateway.

     

    2.png 

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    akharns Profile Picture
    433 on at

    Thank you.   I had listed the domain incorrectly in the connection.

  • sj4 Profile Picture
    2 on at

    getting same error in azure file storge via Logic apps ,when selecting directory for creating files please help?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard