Template Issues

Fix Microsoft Word Cannot Open Document Template Error

John WilsonJohn Wilson Nov 3, 2026 870 views

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.

How to Fix Word Cannot Open Document Template When Adding 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.
Before you start

Ensure that you have saved your current work and completely closed Microsoft Word before troubleshooting, as modifying active template files can cause conflicts.

Solution 1Recommended

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.

1
Locate the problematic template

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.

2
Move the template file

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

3
Restart Microsoft Word

Open Word again and try to insert a page number or footer. Word will automatically recreate the missing template files, resolving the error.

Move or Rename the Problematic Template File
Custom Building Blocks: Moving the Building Blocks.dotx file will restore the default gallery. If you had custom building blocks saved, you may need to manually recover them from the backup file you placed on your desktop later.
Free Microsoft Office alternative

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. 1. Open your Document in WPS Writer: Launch WPS Office and open your existing Word document.
  2. 2. Navigate to the Insert Tab: Click on the 'Insert' tab located in the top navigation ribbon.
  3. 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.
Fully compatible with Microsoft Word formats, including .docx, .doc, and .dotx templates.Easily insert and customize page numbers, headers, and footers without experiencing template errors.Lightweight installation ensures fast startup and smooth document editing.Familiar user interface allows for a seamless transition from Microsoft Office.
QA img-9

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.