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

Community site session details

Session Id : tPDH8cTDHOIeayCCcZE9BT
Power Automate - Power Automate Desktop
Unanswered

.zip Isn't a Valid Archive

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2023 22:00:53 by

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)

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 17 Jan 2023 at 20:29:43
    Re: .zip Isn't a Valid Archive

    Thanks @momlo 

     

    I tried this, but got the same error. Quite sure it's the .zip file that's the issue. I'll follow up if/when I find a solution.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on 17 Jan 2023 at 18:33:02
    Re: .zip Isn't a Valid Archive

    Hi @Anonymous 

    Copy one of the zip to any location outside of the OneDrive, for example C:\Test and test with new empty flow with just one action to uzip (you should have access rights to create folder directly on C:)

    That will clarify if OneDrive is doing something weird here.

  • Community Power Platform Member Profile Picture
    on 17 Jan 2023 at 16:56:34
    Re: .zip Isn't a Valid Archive

    Thanks @VJR 

     

    I tried this, but my org uses O365 auto save so my Desktop folder is cloud-enabled. I added a move file action to move to my desktop before extracting, but the extracted folder still only has the light green check.

     

    I think we'll reach out to our custodian that's sending these .zip files. Maybe there's a particular setting that needs to be changed. I'll report back if I find a solution

  • VJR Profile Picture
    7,635 on 17 Jan 2023 at 02:57:14
    Re: .zip Isn't a Valid Archive

    Can you have the Flow to copy the OneDrive zip file to a local folder -> unzip it here -> copy the unzipped files /folders into the OneDrive location -> Delete the local zip file.

     

    And even delete the OneDrive zip file if needed.

  • Community Power Platform Member Profile Picture
    on 16 Jan 2023 at 21:18:18
    Re: .zip Isn't a Valid Archive

    @momlo @VJR 

     

    Thank you both. I set the Mellon Reports (.zip) folder as Always keep on this device (it has the solid green check, as do all the files in the folder). When I ran the flow to export the attachment, the .zip file showed a solid green check immediately when it was pasted into the folder.

     

    When extracting manually, I use the default Windows function and I don't have any issues. However, I noticed when I manually extract, the extracted folder (and the file within it) are showing only the light green check. Doing the same with the other .zip files for the other flows and the extracted folder shows with the solid green check.

     

    I tried setting the extracted file to Always keep on this device, but the flow deletes the .zip file at the end of the sequence.

     

    Is there an action that can make the extracted folder and file settings to always keep on the device?

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on 15 Jan 2023 at 17:31:27
    Re: .zip Isn't a Valid Archive

    Hi @VJR in case of my up-to-date Win11 and One Drive - PAD waits for the file to be downloaded before it tries to unzip. But maybe OP has different OS/not up to date OD and it behaves differently, or those ZIP files are not supported by the libs PAD uses to unzip.

    I'm really eager to see test results/info from @Anonymous 

  • VJR Profile Picture
    7,635 on 15 Jan 2023 at 03:11:44
    Re: .zip Isn't a Valid Archive

    Hi @Anonymous 

     

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

     

    I have shared an important note for you in my post above.

    See it when PAD is about to unzip the file.

     

    It is possible that you are seeing the light green check after a while.

    You need to see what's happening just when PAD is trying to unzip the file by doing a manual run by putting breakpoints, putting explorer window and PAD window side-by-side, etc and then check.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on 13 Jan 2023 at 21:34:11
    Re: .zip Isn't a Valid Archive

    thanks, yes that's the code we can copy paste to PAD and get your actions.

    I will test tomorrow

     

    //edit

    I think @VJR is right, and this is what might be happening:

     

     

    @Anonymous You said your files are cloud based. That means OneDrive downloads then "on demand" when you access them. Hence you have light green tick.

    When you open Excel etc. it waits for the file to download.

    In case of PAD (just guessing as of now) what could be happening:

     

    1. Flow checks if the file exist, but although it is in the cloud, the local stub is seen by apps as a real file. So pad checks if the file exist, it does (although it is stub, not full file). OneDrive starts downloading

    2. Flow immediately tries to extract the file, but it is still being dowloaded by OneDrive - hence the error.

     

    What you could do to test the theory - mark the folder as always offline (right click on it and you will have the option under onedrive menu)

     

     

    //edit2

    @KJ  I have tested on my Win 11 machine and 5MB zip with "test" as a password:

    1. Folder contained zip files stored in onedrive, I have set this to "cloud" so it is not present on the machine, but gets downloaded each time any software wants to use it/open.

     

    Results are:

    1. Wait for file action treats the stub as a real file and it proceeds with next action

    2. Unarchive action triggers OneDrive mechanism, it recognises that file was called by software and OD downloads the file and PAD is able to extract without issues.  

     

    When writing that you are able to open them manually, is that with 7zip or other 3rd party or built in compressed files functionality? Maybe these ZIP files are encrypted with methods (encryption?) not supported by the OS/PAD?

    For example, when you create encrypted with 7zip and use AES-256 you will not be able to extract it on Win 10 natively.

     

  • Community Power Platform Member Profile Picture
    on 13 Jan 2023 at 21:31:17
    Re: .zip Isn't a Valid Archive

    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'''

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on 13 Jan 2023 at 21:19:31
    Re: .zip Isn't a Valid Archive

    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?)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2