cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ScottR-MT
Level: Powered On

Problem connecting to File System in Flow

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Problem connecting to File System in Flow

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

View solution in original post

13 REPLIES 13
Community Support Team
Community Support Team

Re: Problem connecting to File System in Flow

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

View solution in original post

ScottR-MT
Level: Powered On

Re: Problem connecting to File System in Flow

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

dimi
Level 10

Re: Problem connecting to File System in Flow

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
Level: Power Up

Re: Problem connecting to File System in Flow

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
Level: Powered On

Re: Problem connecting to File System in Flow

 
Kamacete
Level: Powered On

Re: Problem connecting to File System in Flow

For me, this doesn't work.

Smiley Sad

 

I continue with the same error, any more ideas?

thx

Rui

dimi
Level 10

Re: Problem connecting to File System in Flow

@Kamacete 

 

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

Kamacete
Level: Powered On

Re: Problem connecting to File System in Flow

thanks, didn't work.

Smiley Sad

olgaoszcz
Level: Powered On

Re: Problem connecting to File System in Flow

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
Level: Powered On

Re: Problem connecting to File System in Flow

Worked

Smiley Happy

thank you

CraigMGI
Level: Powered On

Re: Problem connecting to File System in Flow

I have tried virtually every permutation and combination that others have recommended and I still cannot get the Create File connector to work. I can create files in SharePoint easily, but not in root folder of my C: drive.

 

I saw another post that said if you do not use Domain authentication, use WORKGROUP\Username instead. I have tried a few combinations of that and it doesn't work either.

 

Is there a simple way to lookup and verify the DOMAIN\Username and Password being using by my laptop, because I can only think it must be something unexpected. I have Windows 10 authentication.

Highlighted
ScottR-MT
Level: Powered On

Re: Problem connecting to File System in Flow

Try opening a command window and typing "Whoami"

 

Also, try creating a folder under the root folder and using that folder instead, as your current permissions may not allow you to write to the root.

CraigMGI
Level: Powered On

Re: Problem connecting to File System in Flow

Thanks Scott, "Whoami" worked perfectly and my Flow connection is now successful with no other changes required.

 

My domain was one of the options I had already tried, but my Username turned out to be "Toshiba", the brand of laptop I am using.

 

Warning to others, no point looking at Windows 10 My Info, in my case this doesn't help at all and just says:

My Name

Email

Administrator

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 453 members 5,013 guests
Please welcome our newest community members: