Lỗi the file cannot be opened because the header errpr

Sometimes, when you try to open a Word file it fails to open and displays the following message – Word cannot open the file because the file format does not match the file extension. This can be troubling, especially when you want to go through the contents of the file for one last time before sending it to someone else.

Lỗi the file cannot be opened because the header errpr

The problem can occur when the Word file you are trying to open has a different file extension than the file you are attaching. It happens when you convert the file manually. There can be other reasons as well. Whatever the case is, you can fix it by using any of the methods described below.

  1. Rename and change the extension manually.
  2. Change the file type to .asd.
  3. Uncheck Hide Extensions by known File Types
  4. Unlocking the Word file

Let us cover the above methods in a bit more detail!

1] Rename and change the extension manually

The simplest method to resolve this issue is to change the extension for the file manually. To do so, right-click the file and select Rename option.

Lỗi the file cannot be opened because the header errpr

Then, change the extension of the document from *.docx to *.doc and then try opening the file. If this doesn’t fix your problem, move to the next method.

2] Change the file type to .asd

Go to the location where the file is stored, right-click it, and select the Copy option.

Then, move to the following path – C:\Users%username%\AppData\Local\Microsoft\Office\UnsavedFiles by pasting this in the start menu.

Lỗi the file cannot be opened because the header errpr

Paste the document here, and change the file type to .asd.

Lỗi the file cannot be opened because the header errpr

Open word, click Open, and at the bottom of the page hit the Recover Unsaved Documents tab.

When the document appears in the list, select it and save the document after opening it.

3] Uncheck Hide Extensions by known File Types

Lỗi the file cannot be opened because the header errpr

Open the File Explorer and go to the View tab. Just adjacent to it, you should find the See more icon visible as three horizontal dots. Click the icon and then, select Options.

Lỗi the file cannot be opened because the header errpr

When a new window appears, scroll down to locate Hide Extensions by known File Types entry. Make sure, the box next to it is left unchecked.

4] Unlocking the Word file

Many users reported that the issue ‘File format does not match the extension could also be resolved by unlocking the file. So, if you are not able to open the file sent as an attachment, use this workaround.

  • Open File Explorer.
  • Go to the path to the folder containing the Word file you want to fix.
  • Right-click on the file and choose the Properties option.
  • In the window that appears, switch to the General tab.
  • Find the Unblock button and click to select it. Note – This option is only visible for files from another source, such as an email attachment.
  • Hit the Apply button and then, click Finish to close the window.

Related:

  • Word cannot open this file because it is larger than 512 Megabytes
  • Word experienced an error trying to open the file
  • Microsoft Office cannot open this file because some parts are missing or invalid
  • Microsoft Office cannot open this file because the .zip archive file is an unsupported version
  • Microsoft Office cannot open this file because there are problems with the contents.

What is a WAV ASD file?

An ASD file is a temporary backup created by Microsoft Word, an Office application. It contains a snapshot copy of the currently opened Word document. Such file types are mainly used for automatic backup and recovery of documents in Word in case of a sudden crash or accidental closing.

Why is my Word file locked?

The file might be locked for a number of reasons. For instance, the file is shared and another user is currently editing it or some other Office app is running in the background with the file already opened. Another possible reason could be that the file has been marked as final and can no longer be updated.

A post-graduate in Biotechnology, Hemant switched gears to writing about Microsoft technologies and has been a contributor to TheWindowsClub since then. When he is not working, you can usually find him out traveling to different places or indulging himself in binge-watching.

When opening an older version of an Excel file in a newer version, you may encounter the “Excel cannot open the file because the extension is not valid” error. This happens if you have accidentally renamed the file with a different file format or an incorrect file extension. Also, you may get the ‘Excel cannot open the file’ error if the file has become unreadable or corrupted.

This is how the complete Excel error message looks like:

“Excel cannot open the file filename.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.”

Lỗi the file cannot be opened because the header errpr

Check out this video for a quick demonstration of how to fix “Excel Cannot Open the File Because the File Format or File Extension Is Not Valid”

How to Fix the ‘Excel Cannot Open the File Because the File Format or Extension Is Not Valid’ Error?

Try any of these workarounds to fix the error and regain access to your Excel file data:

Workaround 1 – Change the Default File Format

By default, an Excel file is saved in .xlsx or .xls file format. Trying to open the file with a different or incorrect extension may cause the ‘Excel cannot open the file because the extension is not valid’ error. To fix the error, try changing the Excel default file format by following these steps:

Note: Take a backup of the Excel file that you cannot open and try the steps on the backup copy.

  • In Excel 2010 and newer versions, click on the File menu.

Note: For Excel 2007 and earlier versions, click on the Office button.

  • On the left panel, click on Options.
  • In ‘Excel Options’ window, under Save workbooks section, click on the Save files in this file format: drop-down. Select a file format (i.e., the one supported by your Excel version).
    Lỗi the file cannot be opened because the header errpr
  • Click OK.

Check if you can open your Excel file. If not, try the next workaround.

Workaround 2 – Edit the Excel File Permissions

You may receive the ‘Excel file format or file extension is not valid’ error if you lack sufficient permissions to open the file. Usually this happens when you try to open an Excel file received from some other user. Follow these steps to change the file permissions and see if it fixes the problem:

  • Right-click on the file that won’t open and click Properties.
  • In the file properties dialog box, click the Security tab and then hit the Edit button.

Lỗi the file cannot be opened because the header errpr

  • When the file’s permissions dialog box appears, click on the Add button.

Lỗi the file cannot be opened because the header errpr

  • Click on the Advanced button from the ‘Select Users or Groups’ window.

Lỗi the file cannot be opened because the header errpr

  • Select Find Now. A list of all users and groups will get displayed in a search results box. Choose Everyone group from the list and hit OK.

Lỗi the file cannot be opened because the header errpr

  • You can see the ‘Everyone’ group in the ‘Enter the object names to select’ textbox. Click OK once again to return to the file’s permission dialog box.

Lỗi the file cannot be opened because the header errpr

  • Click Everyone from the Group or user names: box and check all the checkboxes under Allow.

Lỗi the file cannot be opened because the header errpr

  • Click on Apply and then OK.

Now try to open the Excel file. If you’re still getting the Excel file cannot open error, use the following workaround.

Workaround 3 – Recover Unsaved Workbook

If the ‘Excel file extension not valid error’ occurs when attempting to open an unsaved workbook, do the following to recover the unsaved workbook:

  • In Excel, click File.
  • From the Info screen, under Manage Versions, click Recover Unsaved Workbooks.

Lỗi the file cannot be opened because the header errpr

Excel will list any unsaved files. Try opening the file and save it. If this doesn’t work, skip to the next workaround.

Workaround 4 – Repair the Workbook

If none of the above workarounds has worked for you, chances are that the Excel file has become corrupted. Try to repair the file using the Excel inbuilt ‘Open and Repair’ utility by following these steps:

  • In your Excel application, click on File > Open.
  • In the ‘Open’ dialog box that pops-up, select the Excel file you want to repair and click the arrow next to the Open button.
    Lỗi the file cannot be opened because the header errpr
  • From the dropdown list, select Open and Repair.

Lỗi the file cannot be opened because the header errpr

  • Excel will ask you to attempt to repair the file or extract data from it. Click Repair to retrieve maximum data. If the Repair option fails, click on Extract Data to recover the data without formulas and values.

Lỗi the file cannot be opened because the header errpr

If the ‘Open and Repair’ utility doesn’t help fix the corrupted file and/or recover the data, use an Excel repair tool such as Stellar Repair for Excel to regain access to your file and its data.

Lỗi the file cannot be opened because the header errpr

Stellar Repair for Excel software can help repair severely corrupted XLS and XLSX files. Also, it helps recover all the file components, including tables, pivot tables, cell comments, charts, chart sheets, images, formulas, etc., without impacting the original structure of the Excel file.

To learn how the software works, read this: How to repair corrupt Excel file using Stellar Repair for Excel?

Conclusion

You may encounter the error ‘Excel cannot open the file because the extension is not valid’ when opening a workbook with a different file format or an incorrect file extension. Also, the error may occur if the Excel file has turned corrupt. This article has covered some of the most effective workarounds to resolve the error. But if nothing works, you can try to repair the Excel file and retrieve its data using the Stellar Repair for Excel software.

FAQs

  1. I have an Excel file saved on my system. I get the error message ‘Excel cannot open the file filename.xlsx because the file format or file extension is not valid’ when trying to open it. Can I get back all my data using the Excel repair tool?
  1. Stellar Repair for Excel displays a preview of all the recoverable data. You can get back all the Excel file data shown in the preview window.
  1. I downloaded the repair tool, but it says, “File is severely corrupted, cannot be previewed.” What should I do next?
  1. This message appears if your Excel file has turned severely corrupt. Contact the support team at Stellar to get further assistance.