How to Fix Word Error: Cannot Open the Document Template
Question details
The user encounters a document-template error preventing them from inserting formatting elements like page numbers or text boxes.

- 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.
Ensure you save all your current documents and completely close Microsoft Word before attempting to locate or modify any system template files.
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.
Make sure all Word documents are saved and the application is completely closed so the template files are not locked.
Press Windows Key + R to open the Run dialog. Type %appdata%\Microsoft\Document Building Blocks and press Enter.
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.
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.
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.

Use Keyboard Shortcuts as a Workaround
If you need an immediate fix without modifying system files, use direct shortcuts to bypass the building blocks interface.
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. Download the software: Visit the official WPS website and download the free WPS Office installation package.
- 2. Install WPS Office: Run the installer file and follow the simple on-screen instructions to set up the software.
- 3. Edit smoothly: Open your Word documents in WPS Writer to effortlessly insert page numbers and text boxes without encountering template errors.

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.




