Template Issues

How to Fix Word Error: Cannot Open the Document Template

Emma BrownEmma Brown Nov 4, 2026 869 views

Question details

The user encounters a document-template error preventing them from inserting formatting elements like page numbers or text boxes.

How to Fix the Word Error That Says It Cannot Open the Document Template
Product
Microsoft Word
Device & OS
not provided
Scenario
Attempting to insert page numbers, text boxes, or other building blocks into a document.
Observed behavior
Word displays a warning message stating it cannot open the document template, typically caused by a corrupt Building Blocks.dotx file.
Before you start

Ensure you save all your current documents and completely close Microsoft Word before attempting to locate or modify any system template files.

Solution 1Recommended

Recreate the Building Blocks Template

Deleting or renaming the corrupted template file forces Word to generate a fresh, working copy upon restart.

The document-template error is most commonly associated with a corrupted Building Blocks.dotx or Built-in Building Blocks.dotx file. Resetting this file usually resolves the issue.

1
Close Microsoft Word

Make sure all Word documents are saved and the application is completely closed so the template files are not locked.

2
Open the Document Building Blocks folder

Press Windows Key + R to open the Run dialog. Type %appdata%\Microsoft\Document Building Blocks and press Enter.

3
Locate the template file

Navigate into the folder named with your language ID (e.g., 1033 for English) and the folder for your Office version. Look for a file named Building Blocks.dotx or Built-in Building Blocks.dotx.

4
Rename the template

Right-click the Building Blocks.dotx file, select Rename, and change the name to Building Blocks.old. Doing this hides the corrupt file from Word while keeping it as a backup.

5
Restart Microsoft Word

Open Word again. The software will automatically detect that the template is missing and generate a fresh, uncorrupted version, allowing you to insert page numbers.

Recreate the Building Blocks Template
Automatic Recovery: Once Word restarts, trying to insert a page number or text box should work normally without prompting the error.
Free Microsoft Office alternative

Avoid Complicated Template Errors with WPS Office

Troubleshooting corrupted Microsoft Word templates like Building Blocks.dotx can be frustrating. Switch to WPS Office, a free, reliable, and highly compatible alternative where inserting page numbers, headers, and text boxes is completely seamless.

  1. 1. Download the software: Visit the official WPS website and download the free WPS Office installation package.
  2. 2. Install WPS Office: Run the installer file and follow the simple on-screen instructions to set up the software.
  3. 3. Edit smoothly: Open your Word documents in WPS Writer to effortlessly insert page numbers and text boxes without encountering template errors.
Fully compatible with Microsoft Word (.doc, .docx) file formatsInsert page numbers and text boxes without relying on fragile external template filesLightweight application that runs smoothly on almost any computerFamiliar user interface ensuring zero learning curve for new users
QA img-9

Frequently Asked Questions

What causes the 'cannot open the document template' error in Word?

This error generally occurs when the Building Blocks.dotx file, which stores default galleries for page numbers, headers, and text boxes, becomes corrupted or inaccessible by Microsoft Word.

Will deleting the Building Blocks template erase my custom settings?

Deleting or renaming the Building Blocks.dotx file will only reset the default Microsoft built-in elements. Any custom templates or macros you have saved in your Normal.dotm template will remain unaffected.

How do I find out exactly which template is causing the error?

When the error message appears, check if there is a 'Details' or 'Show Help' button on the prompt. Clicking it will often reveal the exact file path and name of the template causing the issue.