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 / .zip Isn't a Valid Arc...
Power Automate
Unanswered

.zip Isn't a Valid Archive

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm receiving this error when using the Unzip files flow in PAD. I've confirmed the archive and destination paths are correct, the password is correct, and the .zip file is not corrupted nor is it a large file. I have used this flow structure with two other flows and they work without issue. The structure is Wait for file -> Unzip files

 

Below are the details of the error. Any help is greatly appreciated.

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: 'C:\Users\AC03372\OneDrive - Alberta Central\Mellon Reports (.zip)\Custody Valuation - Alberta Central.zip' isn't a valid zip archive or a parameter isn't set
at Microsoft.Flow.RPA.Desktop.Modules.Compression.Actions.UnzipFiles.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Is Mellon Reports also a .zip folder?

     

    The other option would be to build the command line for the same thing and have PAD try to run the command line.

  • VJR Profile Picture
    7,635 on at

    Since you are accessing a OneDrive file is there a possibility that when PAD is trying to unzip the file it is not synced properly?, or the copy of the file is "online-only"?

     

    Which icon do you see?

    See it when PAD is about to unzip the file.

    VJR_1-1673578560604.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your response. Mellon Reports (.zip) is not a .zip folder. I just named it that so I know that's where the zipped files are being downloaded to. The files are then unzipped and pasted to a separate folder (also called Mellon Reports, also not a .zip folder)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for the reponse. All files are showing the light green check (second from top on your list).

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Do you have the ability to download 7zip?

     

    If so, they have a one-line command line option for unzipping files even with passwords.  It may work for whatever reason when PAD can't.

     

    Good luck!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, but I want the flow to work. As mentioned, the other two flows (with nearly identical code) work flawlessly. This one should as well.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @Anonymous is it possible for you copy part of your code here so we could take a look and test?

    I do a lot of archiving (zip + password) and all my flows have no issues with that.

     

    If you share your actual code I will try to replicate on my machine

     

    //edit

    Those other flows where it does work - you say "nearly identical" - what are the exact differences between working and not working code?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks, Momlo. I've attached snippets of the flows.

     

    The only differences in the code are the reference file, and the export path of the unzipped file.

     

    Flow that doesn't work

    kjames05_1-1673643973480.png

     

    Flow that works

    kjames05_2-1673644200859.png

     

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    thanks, can you copy actions from PAD and paste here so we get actual PAD code?

    You can replace the sensitive information with some dummy text (although perhaps some characters in the text are causing the issue?)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you. Is the below the PAD code? I noticed there's no Peek Code option in PAD, so I copied the actions and pasted into Notepad.

     

    Also, I don't think there are any issues with the characters in any of the strings as I selected the file and folder from the explorer.

     

    WAIT (File.WaitForFile.Created File: $'''C:\\Users\\AC03372\\OneDrive - DUMMYTEXT\\Mellon Reports (.zip)\\Custody Valuation - DUMMYTEXT.zip''')
    Compression.UnzipFiles ArchivePath: $'''C:\\Users\\AC03372\\OneDrive - DUMMYTEXT\\Mellon Reports (.zip)\\Custody Valuation - DUMMYTEXT.zip''' DestinationFolder: $'''O:\\Mid Office\\Compliance & Liquidity Risk\\2. Daily Exception Checks\\Mellon Reports\\Custody Valuation''' Password: P'AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAALIKP2HkjvkmpWzfCdu2GMwQAAAACAAAAAAADZgAAwAAAABAAAACDPI6jU/WkIrSSkK1KdTW+AAAAAASAAACgAAAAEAAAADXP2bI+Yr/N9OFWa8ANV3EQAAAAKa695gcSzUHcokj7pfQ63RQAAABu9tXzTQvJcpyR7wkdO8lg+IpBzQ=='
    File.Delete Files: $'''C:\\Users\\AC03372\\OneDrive - DUMMYTEXT\\Mellon Reports (.zip)\\Custody Valuation - DUMMYTEXT.zip'''

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 275 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 178 Super User 2026 Season 2

Last 30 days Overall leaderboard