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

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
Solution Sage
Solution Sage

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.

 

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (6,960)