cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
olgaoszcz Advocate IV
Advocate IV

SFTP throwing 'A reference was made to a file or folder which does not exist.'

Hi I have a problem with my SFTP connection.

I'm triggering a Flow 'When a file is added or modified' and then I want to 'Get metadata using path' uding the dynamic content from the trigger. The Flow keeps failing because 'A reference was made to a file or folder which does not exist.'. 

This is my Flow:

2019-05-15 08_24_23-Edit your flow _ Microsoft Flow.png

And that's what I get when it runs:

2019-05-15 08_23_49-Run History _ Microsoft Flow.png

I checked and both the trigger and action are using the same connection.

What can cause the issue?

2 REPLIES 2
v-zhos-msft Solution Sage
Solution Sage

Re: SFTP throwing 'A reference was made to a file or folder which does not exist.'

Hi @olgaoszcz ,

You can add a Compose action below the trigger to check the 'File path' value.

The dynamic content value of 'File path' is like: folder name/file name.

When you Select a file through File Browse, the 'File Path' is like: /folder name/file name

So you need add '/ ' before the dynamic content value of 'File path'.

Capture1.png

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

olgaoszcz Advocate IV
Advocate IV

Re: SFTP throwing 'A reference was made to a file or folder which does not exist.'

When I analyze the failure run I can see that the path provided has the '/' which means this is not a problem. 

2019-05-27 09_53_56-Run History _ Microsoft Flow.png

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,706)