
Announcements
I'd like to zip all the subfolders of a folder in individual zip files, but the flow I've created keeps failing, with the error not giving any details beyond “Failed to zip files”
The flow is basically
1) get all the subfolders inside the folder.
2) Loop through each entry of the array
2.1) Zip the specific entry of the array
Can someone help me figure this out?
Here's the full log
: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to zip files
at Microsoft.Flow.RPA.Desktop.Modules.Compression.Actions.ZipFiles.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
First, does %FolderPath% happen before Get subfolders? You use it in get subfolders, so it has to be declared and correct before then.
Second the end of the loop is at %Folders.Count - 1%. Since it is 0 index, everything is -1.
For archive path, just try %FolderPath%\%Folders[LoopIndex].Name%.zip and for Files to zip, try %Folders[LoopIndex]%
Good luck!