How to Fix Word Mail Merge INCLUDETEXT Errors and Security Warnings
Question details
Users are encountering an "Error! Cannot open file" message and unexpected security warnings when executing mail merge operations involving INCLUDETEXT fields.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Performing mail merge operations that rely on INCLUDETEXT or nested INCLUDEPICTURE fields after a recent Microsoft Office update.
- Observed behavior
- Text and RTF files fail to load properly, displaying an error message instead of the content, and updating these document fields triggers a security warning.
Ensure all file paths referenced in your INCLUDETEXT fields are correct and accessible, and verify that you have administrative privileges if you need to modify the Windows Registry.
Manually Update All Document Fields
Updating fields manually using keyboard shortcuts often bypasses the automated security warning and correctly processes the mail merge.
Recent Office updates have altered how automatic field updates are handled for security reasons. Forcing a manual update across the entire document can resolve the display errors and suppress the warning prompt during the mail merge process.
Click anywhere inside your Word document and press 'Ctrl + A' on your keyboard to highlight all text and fields.
Press the 'F9' key to manually force all selected fields to update. Verify that the included files and paths are now displaying correctly without triggering the security prompt.

Suppress Security Warnings via the Windows Registry
Administrators can configure a specific registry key to disable warnings on include fields updates.
Troubleshoot Nested INCLUDEPICTURE or MacroButton Fields
Nested images or macro buttons within the include fields can sometimes trigger these errors.
Experience Error-Free Mail Merging with WPS Office
If Microsoft Office updates are causing workflow disruptions and INCLUDETEXT errors, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative with intuitive mail merge capabilities without requiring complex registry configurations.

Frequently Asked Questions
What does 'Error! Cannot open file' mean in a mail merge?
This error means the word processor cannot locate, read, or access the external file specified in your INCLUDETEXT field. This usually happens if the file path is incorrect, the file was moved, or security settings are blocking access.
Why did INCLUDETEXT stop working after an Office update?
Microsoft occasionally updates security protocols for linked files and dynamic fields to protect users from malicious code. These updates can sometimes restrict automatic field updates, triggering security warnings and blocking file access during a merge.
Can Group Policy prevent me from fixing the security warning via the registry?
Yes. If you are on a company network, network administrators can enforce Group Policy settings that override your local registry changes for Office field updates. In such cases, the DisableWarningOnIncludeFieldsUpdate key will not work.
How do I quickly update all fields in my document at once?
You can quickly update all fields by pressing Ctrl+A to select the entire contents of the document, and then pressing the F9 key to force all fields to refresh.




