Launching Microsoft Word or attempting to open an existing .docx document frequently triggers a dialogue box stating: “Word could not create the work file. Check the temp environment variable.” After dismissing the notification, Word may freeze, fail to render embedded preview thumbnails, or refuse to save document modifications. This error occurs when the Windows registry contains an invalid path pointing to the Temporary Internet Files cache folder, or when restricted filesystem permissions prevent Office from creating temporary scratch files.
Verify and Correct the INetCache Registry Path
The primary root cause of this error is a corrupted registry key specifying the location of temporary cache files:
- Close all running instances of Microsoft Office applications.
- Press Win + R, type
regedit, and press Enter to launch the Registry Editor. - Navigate to the following registry path:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders - In the right pane, locate the string value named Cache.
- Double-click Cache and verify its value data.
- Set the Value data exactly to the default Windows path:
(On older Windows builds:%USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files) - Click OK and close the Registry Editor.
Create the Missing INetCache Directory Manually
If the physical cache folder was deleted during disk cleanup routines, Word fails upon initialization:
- Press Win + R, type
%localappdata%\Microsoft\Windows, and press Enter. - Inspect the folder contents. If the INetCache folder is missing, right-click an empty space, select New > Folder, and name it
INetCache. - Open the newly created
INetCachefolder and create a subfolder namedContent.Word. - Restart your computer to force Windows Shell to initialise the directory structure.
Check Windows Environment Variable Values
Ensure that core Windows TEMP and TMP environment variables point to valid local disk partitions:
- Press Win + R, type
sysdm.cpl, and press Enter. - Switch to the Advanced tab and click Environment Variables…
- Under User variables, verify that both TEMP and TMP are set to:
%USERPROFILE%\AppData\Local\Temp - If the paths point to a decommissioned secondary hard drive or non-existent partition, select Edit and restore the default values.
Correcting registry cache paths and creating the Content.Word folder permanently resolves the “cannot create the work file” error in Microsoft Word.