Windows Cannot Open Folder - Zip Is Invalid

Bad Windows Errors Strike Again!

February 28, 2018

Sitecore packages. We all use them. When exchanging packages or going back into the archives, a good practice is to explore the package on your Windows machine before installing it in order to verify which items are being installed.

There is a case you may run into in which the items contained within your .zip file contain file paths that are longer than Windows can support. As a result, if you try to explore the .zip file or extract it in order to explore it, you’ll get an error message:

Windows cannot open the folder. The compressed (zipped) Folder “C:\Path\To\Folder\ZipName.zip” is invalid.

Windows cannot open the folder - Zip folder is invalid

According to Microsoft, the limit of file paths is around 255 characters. If your sitecore project has deeply nested items in the tree or items with very long names, you will run into this issue. We initially thought that the zip was corrupted and were leery about installing the package. However, the package installed just fine.

The Solution

Use an application like 7Zip when exploring your Sitecore packages. These types of applications are able to explore packages with no problems.

Good luck out there,

Marcel

Second CTA Ogilvy's Legacy

Today, David Ogilvy's influence can still be felt in the world of advertising.

Ogilvy's Influence Example
Emphasis on research Market research is a crucial part of any successful advertising campaign
Focus on headlines A strong headline can make the difference between an ad that is noticed and one that is ignored
Use of visuals Compelling images and graphics are essential for capturing audience attention