Fix Microsoft Word Cannot Open Document Template Error
Question details
The user encounters an error indicating that Word cannot open a document template or Building Blocks.dotx when attempting to insert a footer or page number.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Inserting a footer or page number into a document.
- Observed behavior
- Microsoft Word displays an error message regarding a .dotx template or Building Blocks.dotx and fails to insert the requested footer or page number.
Ensure that you have saved your current work and completely closed Microsoft Word before troubleshooting, as modifying active template files can cause conflicts.
Move or Rename the Problematic Template File
Force Word to automatically recreate a healthy version of the necessary building blocks template by moving the corrupted file out of its directory.
The error is typically caused by a corrupted Building Blocks.dotx file or a specific custom template mentioned in the error prompt. By temporarily moving this file, you allow Word to safely generate a fresh, default template upon restart while keeping your original file as a backup.
Open File Explorer and navigate to the folder path mentioned in the Word error message. If no path is given, check the default Building Blocks path: C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Document Building Blocks.
Find the specific .dotx file or 'Building Blocks.dotx'. Right-click the file, select Cut, and Paste it onto your Desktop (or another safe backup folder).
Open Word again and try to insert a page number or footer. Word will automatically recreate the missing template files, resolving the error.

Use WPS Office to Seamlessly Edit Documents and Add Footers
If Microsoft Word continues to experience template corruption or configuration errors, consider switching to WPS Office. It is a highly compatible, lightweight, and free alternative that allows you to effortlessly format documents, insert headers, footers, and page numbers without dealing with complex building block issues.
- 1. Open your Document in WPS Writer: Launch WPS Office and open your existing Word document.
- 2. Navigate to the Insert Tab: Click on the 'Insert' tab located in the top navigation ribbon.
- 3. Add Page Numbers or Footers: Click 'Page Number' or 'Header and Footer' from the menu and choose your preferred style to apply it instantly.

Frequently Asked Questions
Where is the Building Blocks.dotx file located in Windows?
The Building Blocks.dotx file is typically found in your user profile under C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Document Building Blocks\[Language ID]\[Version]. Note that the AppData folder is hidden by default, so you may need to check the 'Hidden items' box under the View tab in File Explorer to see it.
Will I lose my custom headers and footers if I delete the template?
Yes, if you permanently delete the Building Blocks.dotx file, any custom headers, footers, or text boxes you created will be removed. It is highly recommended to move the file to another folder rather than deleting it so you can restore your customizations later if needed.
Why does the template error occur when inserting page numbers?
This error generally happens if the Word application crashes while saving a building block, if the template file becomes corrupted during a Windows update, or if there is a permission issue preventing Word from accessing the AppData directory.




