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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem connecting to ...
Power Automate
Unanswered

Problem connecting to File System in Flow

(2) ShareShare
ReportReport
Posted on by 32

Hi,

 

I've been trying to connect to a folder in the File System, but whenever I try to drill into the root folder, it gives me the below error, even though the connection shows successful from the data gateway. Can anyone help point me in the right direction? I am trying to save email attachments to a folder on a server share.

 

Flow File System Credentials.PNG

 

Data Connection via Gateway:

 

Flow File System Connection.png

 

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

    Hi @ ScottR-MT,

    The error told that the credentials for the connection do not have access to your folder.

    Could you please check whether the connection you have selected is the right one.

    1.PNG

     

    Further, if the Username, Password, gateway in your connection is wrong, an error could occur as you. Could you please check the Username, Password, gateway in your connection.

     

    You could refer to screenshots below:

    2.png

     

    Make sure the Username is  configured to “DOMAIN\Username” and the Password is correct.

    In addition, make sure the gateway you choose should be an already installed gateway in your computer.

     

    I have made a test on my side, the issue you mentioned doesn’t  accur, you could refer to steps below:

    1. Add a trigger, you could choose trigger ”When a new email arrives” and choose a path in the Folder field, the Has Attachment Filed and Include Attachments Filed both set to Yes.
    2. Add an Apply to each, choose the Attachments dynamic content of ”When a new email arrives” in the input field.
    3. Inside the Apply to each, add action “Create file” of “File System” connector, create a connection like me above. choose “File System” in the Folder path field, choose the Name dynamic content of ”When a new email arrives” in the File name field, choose the Content dynamic content of ”When a new email arrives” in the File content field.

     

     

    Image reference:

     

    3.jpg

    When I receive an email with attachment, the flow run successfully as below:

     

    4.png

    And the attachment has been saved in the Root path “C:\Users\Administrator\Desktop\1\2”

     5.png

  • ScottR-MT Profile Picture
    32 on at

    Thanks!  It turns out that the username has to be specified as DOMAIN\USERNAME, and not in the email address format.  Thank you!

  • ITCareNV Profile Picture
    574 on at

    I faced similar issues and while i followed every step described here or antwhere els i found similar issue, none of them solved my problems. 

     

    However creating a new user on the PC and added this user to the administrators group, worked and solved my problems.
    So seems to me my default admin account which i use has some other restriction or configuration compared to the newly created account...

     

    Hope this helps some one Smiley Very Happy

  • pkluss Profile Picture
    36 on at

    So glad I stumbled across this.  Exact same issue for me.  Microsoft really should force people to use the DOMAIN\username format using input validation or provide some kind of warning because I can guarantee people are losing a lot of time troubleshooting this.  I myself lost about an hour.

     

    Thanks again.

     

    Phil

  • olgaoszcz Profile Picture
    66 on at
  • Kamacete Profile Picture
    160 on at

    For me, this doesn't work.

    😞

     

    I continue with the same error, any more ideas?

    thx

    Rui

  • ITCareNV Profile Picture
    574 on at

    @Kamacete 

     

    Try deleting your connexion and recreate it. It can become "corrupt" after several attempts.

  • Kamacete Profile Picture
    160 on at

    thanks, didn't work.

    😞

  • olgaoszcz Profile Picture
    66 on at

    It didnt work for me either, but finally I figured out the problem - it was wrong domain name/setup. If you authenticate with windows, you can check it if you open Settings->Account->Your Info on your computer and under your name will be the exact form of the DOMAIN\username that Flow wants you to put in there. Copy it and paste in your connection. Good luck!

  • Kamacete Profile Picture
    160 on at

    Worked

    🙂

    thank you

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard