Short
February 16, 2023, 10:09am
1
Hi All
I want to download all the files in a Sharepoint folder. This is my process (The links are complete, I’ve just removed work-related information):
But this is the error I’m getting:
Can anyone advise what I’m doing wrong please? I’ve searched on the forum but they all seem to be from a few years ago and are either outdated or refer to this package, which is coming up as “No compatible version with Windows projects”:
UiPathTeam.SharePoint.Activities also says there’s no compatible version
Thanks
ptrobot
February 16, 2023, 11:15am
2
I looks like you are trying to download a folder which is not supported by the “Download File” activity.
You could test add an If-statement to check that it is a file before downloading:
UploadFolder.File IsNot Nothing
Short
February 16, 2023, 11:43am
3
Hey @ptrobot
Thanks for that I’ve tried that and it looks like it’s seeing the folder as empty
However, it’s got 30+ files in
Is something missing from my Find Files And Folders properties? (The Site URL is complete but I’ve removed work-related info again)
Thanks
ptrobot
February 16, 2023, 12:08pm
4
You are only getting the first item, which is a folder.
Assign a variable to the Results property instead:
Then loop through it to download the files:
1 Like
Short
February 16, 2023, 1:23pm
5
Ahhh of course, thank you!
It’s for some reason decided to only look through 3 files and then stop there?
But as mentioned before, I have 40+ files in the folder. The first file downloaded is 4th from the top and the second file being downloaded is 4th from the bottom.
Any idea what’s gone on?
Thanks
ptrobot
February 16, 2023, 2:35pm
6
You could test to set Subfolder to “Upload Tests” and leave Query empty.
1 Like
system
(system)
Closed
February 19, 2023, 3:55pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.