web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compress multiple file...
Power Automate
Answered

Compress multiple files fail, but single file works.

(0) ShareShare
ReportReport
Posted on by 8
 
 
I am using the desktop version, and I am trying to create a flow to compress and zip multiple files into a single zip file, and getting error message saying unable to compress file (Chinese Text). I am wondering if anyone has encountered same problem, and know a solution. And funny thing is if I change to just single file, then it works fine.
 
 
 
相互關聯識別碼: 40e388f7-fd0d-4c7a-ba26-36e2af5d20a9
Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: 無法壓縮檔案
   於 Microsoft.Flow.RPA.Desktop.Modules.Compression.Actions.ZipFiles.Execute(ActionContext context)
   於 Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    For me it worked fine when I just select file and selected multiple files from the same folder (Hold CTRL and select the files you want)



    Looks like your syntax might be bit wrong when I compare it to mine:


    My Zip files -action:


    Zip files -action looks like this:
  • CU11111052-0 Profile Picture
    8 on at
    Thanks for speedy reply. And I will sure correct the code. However, I did use the selection with control to select multiple files and the code was generated automatically. Thanks for the update and I will repost here if I get it to work.
  • CU11111052-0 Profile Picture
    8 on at
    Unfortnuately, I correct the suggested code, and still having same error message.
     
    I tried removing % from begining and end
    I tried, replace \\ with single \
     
    Same error message    :(   
     
     
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Now your Files(s) to zip seems to be a string value and not an array:

     
    For reference how string vs array looks like in PAD:


    Is your flow perhaps Power Fx enabled flow? If so I would suggest you create a new flow with Power Fx not enabled.
    I quickly tested and seems like Power Fx enabled flow has this bug.  Its in preview so has many bugs still.
    Seems like it still uses % -signs with the array reference in Zip files even though Power Fx doesn't actually use % -signs for referencing (it uses equal sign)

    If you really need to use Power Fx -enabled flow then use Get files in folder -action first to list the files you want to zip.
    Then use that variable in Zip files:


    Then it worked for me.
  • Suggested answer
    CU11111052-0 Profile Picture
    8 on at
    Indeed, that was early Thanksgiving gift ! 
     
    I tried new flow, disable Power Fx, and it worked. 
     
    That was 12 hours, I can't get back from Microsoft.
     
    Thanks a whole bunch :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard