cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarcusD1
Helper I
Helper I

Trying to copy files - getting "file not found" error

I'm trying to build a flow that filters for all files in a Sharepoint library within a certain date range, then pulls those files (using Get File Content), and then Create New File[s] in a different Sharepoint library. The flow fails during the Get File Content action, with a "File not found" error message. I'm thinking the issue might be the File Identifier field, but I tried using both File ID and Current Item from the dynamic field choices. What am I missing?

 

Below is my flow as built, followed by the error screen.

MarcusD1_2-1651095613546.png

MarcusD1_3-1651095678729.png

 

Error message after running flow:

 

MarcusD1_1-1651095529908.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @MarcusD1 

 

When you use the Get Files it retrieves the folder as well. So you need to check whether its a folder or not. Also you need Get file properties. Here is the flow you need.

 

image.png

image.png

 

If you need any more help please let me know.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @MarcusD1 

 

When you use the Get Files it retrieves the folder as well. So you need to check whether its a folder or not. Also you need Get file properties. Here is the flow you need.

 

image.png

image.png

 

If you need any more help please let me know.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

This did the trick - thank you! That's interesting that the "get files" action grabs the folders as well - I didn't even consider that.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,152)