Power Automate – Copy files from SharePoint to a local system folder

Copper Contributor

Hi Team

 

I want to copy files from a SharePoint Online document library to a file system on a local machine.

I am using Create File action to create files and move to local machine. It may fail sometimes because of large file size and length of file name exceeding the limit. 

 

How can I capture those filenames which were failed in a string or array and reason for failure? Please help me on this issue.

 

@Juan Carlos González Martín @Norman Young @RobElliott 

Thank you.

7 Replies

@MadhusudanShettyMS 

Hello,

Sounds like you are using PowerAutomate can you please attach the screenshot of the Flow?

 

@Alireza Rahimifarid 

 

Yes I am using Power Automate.

 

Capture.PNG

 It works and file is copied to system folder. After Create file , I want to capture Failed Filenames in a String. How can I do that ?

 

Thank you.

@MadhusudanShettyMS What if the sharepoint folder has many sub folders, Do we need List Folder step in between Sharepoint and Local folder ?

Did you get any solution? or any other work around to tackle large files?
Yes, simply create a "Append to string" command right after the create file command. Set it to append the "Name" variable and set it to only run if the last command failed. (The three dots in the upper right => Configure run after)
Hey, Does this require the Desktop Flow. Coz I am unable to find "Get file content" option on the cloud flow.

@Abby2992 Possibly. I may not understand you but the Get File Content block I am referring to(I think it has been like a month.) is part of the Sharepoint actions.