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

Announcements

News and Announcements icon
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)
2024-11-11 18_55_08-Power Automate _ Taiwan Listing - zip - csv, html, json, xml.jpg
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,583 Super User 2026 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,583 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard