How To Fix “Cannot Open File As Archive” Error?
Files are usually archived to squeeze within a single stack. Such stacks of highly compressed files are called archives. They become handy when it comes to transferring and storing files.
After files are parsed as archives, they must be unparsed to reuse. But, while unparsing the archive, you may receive an error: “cannot open file as archive.” In such a case, you may wonder if the files can be unzipped without any data loss or not.
Read through this article to know the causes of the issue and methods to retrieve data from your archive successfully.
What Causes the “Cannot Open File as Archive” Error?
Generally, the error occurs because of problems in the archiving process. If the files aren’t zipped properly, they also won’t unzip back. Besides, some other reasons provoking this error are:
- Broken files
- Unknown zip extensions
- Difference in parsing tool
- Corrupt file header
- Changed CRC value
- Split files located in different directories
- Damaged physical drive
How to Fix the “File Cannot Open as Archive” Error?
Before proceeding to the fixes, check whether you have a supported zip file format or not. Applications won’t be able to unpack the unrecognized zip formats. We would also recommend using the same tool to parse and unparse the archive. And another way to prevent loss from the problem is to backup your files before packing.
Now try the below-listed solutions to the error:
Rezip/redownload Files and Extract
We have already mentioned the problem being a result of packing problems. So, you can try to rezip and then extract the files if possible. Try to use different compression tools for the process, but remember to compress and decompress with the same tool.
If you have fetched an archive from an online source, downloading errors can also cause such problems. The downloading errors may be network problems, missing files, or mid-way changed destination. Make sure to properly redownload the archive and extract it to check if the issue is resolved.
Certain drive issues also cause this error. You can run the Check Disk command on CMD to fix it.
Here’re the steps:
- Click on Search box
cmdand Run it as an Administrator.
CHKDSK C: /F /R /Xand hit Enter.
Note: CHKDSK command only fixes issues within the file system and disk but not damaged archives. You will have to rezip and redownload to fix the corrupt data in archives.
Use Tools to Repair Archive
Archive files consist of recovery data in one of its parts. Various utility tools can utilize such data to retrieve the actual file information. Parsing tools like WinRAR and 7-zip also come with their in-built recovery service. Or, tools like Yodot and MultiPar can help you do the job.
Here are the steps you can follow to repair the archive with WinRAR:
- Open WinRAR and locate the archive from the address bar.
- Select the file that you want to fix.
- Click on Tools from the horizontal menu on top.
- Choose the Repair archive option.
- Within the dialog box, relocate the file to the folder you want.
- Click on the OK button.
- Extract and open the new archive from the location you saved.
Use Hex Editors to Edit Start Header
Another possibility of error is the changed start header of the archive. The start header contains important pieces of information and links to the end header part. The information can be edited in hex editors to fix. Use any hex editors available online, and replace the start header hex values with:
0000000000: 37 7A BC AF 27 1C 00 04 00 00 00 00 00 00 00 00
0000000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Then, try to extract and open it.
Fix CRC Errors
While compressing, CRC(Cyclic Redundancy Check) values are assigned to the archive files. When an archive file is extracted to detect errors, these values are compared with the original values. If CRC values don’t match, the archive cannot be opened. These types of errors are pretty difficult to solve as CRC errors mean having bad portions within archives.
But certain tools like DataNumen Archive Repair, Remo ZIP repair, etc also let you bypass the redundancy check and let you extract the viable amount of uncorrupted data. Usually, the installation file archives under this error can be fixed. But if your file has unique data, you must manually replace its bad parts.
Keep Archive Parts in the Same Directory or Use File Merger
Files are zipped into multiple archives sometimes. If those parts are located in different directories, this problem can appear. To solve, try to figure out where the archives are located and put them in the same directory. Creating a different folder to store such archives would be even better.
You can also use file merger apps or the mentioned packing tools to associate various archives as one file. Just be sure to use the same compression format for all. And simply extract the archive after merging.
Follow the steps to merge archives using winRAR:
- Open winRAR and navigate to the archives you want to merge from the explorer bar.
- Hold the Ctrl key and click the archives.
- Right-click and select Extract to a specified folder.
- Then, create a new folder and Click Ok.
- Now open the folder and select all the files.
- Right-click and select Add to archive…
- Specify the name and location, then click Ok.
Dedicated archive mergers will let you skip these manual steps.