Fix Outlook "Could Not Create the Work File" Error
In this article
When Outlook shows the error "Could not create the work file," it usually means the program can't write temporary files to its designated cache folder. This is often due to permission issues, a full disk, or a corrupted Temp folder. The fix is to clear the Outlook Temp folder and ensure the correct permissions are set.
What You'll Need
- Administrator access to your Windows computer (to change folder permissions if needed)
- Outlook closed (make sure it's not running in the background)
- Knowledge of your Windows version (Windows 10 or 11, or older)
Step-by-Step
- Close Outlook completely. Check the system tray (bottom-right corner near the clock) for the Outlook icon. Right-click it and choose "Exit" to ensure it's not running in the background.
- Locate the temporary work file folder. Press Win + R to open the Run dialog. Type
%temp%and press Enter. This opens the Temp folder where Outlook stores its work files (usually a subfolder named "Outlook" or files starting with "~" or "Outlook"). - Delete the contents of the Temp folder. Select all files and folders inside (Ctrl+A) and delete them. If some files are in use, skip them (Windows will tell you). These are temporary files and can be safely removed.
- Clear the Outlook-specific temp folder. In the same Run dialog, type
%localappdata%\Microsoft\Outlookand press Enter. Look for a subfolder named "Temp" or files with .tmp extension. Delete them. If you see a folder named "Outlook" inside, open it and delete its contents. - Check disk space. Open File Explorer, right-click on the drive where Windows is installed (usually C:), and select "Properties." Ensure you have at least 1 GB of free space. If not, free up space by deleting unneeded files or emptying the Recycle Bin.
- Set folder permissions (if step 3 or 4 didn't work). Navigate to
C:\Users\[YourUsername]\AppData\Local\Microsoft\Outlook(replace [YourUsername] with your actual username). Right-click the Outlook folder, select "Properties," then the "Security" tab. Click "Edit," select your username, and check "Full control" under "Allow." Apply and OK. - Restart Outlook. Open Outlook and try performing the action that caused the error (like sending an email or opening a calendar item).
Common Mistakes
- Not closing Outlook fully: If Outlook runs in the background, it locks the temp files, so deletion fails. Always exit from the system tray.
- Deleting the wrong folder: Make sure you're in the Temp folder, not the Outlook data files folder (which contains your .pst/.ost files). Deleting those would remove your emails.
- Skipping permission changes: If the error persists after clearing temp files, the folder permissions are the culprit. Don't skip step 6.
- Ignoring disk space: A full drive can cause this error. Check space before assuming it's a permission issue.
Tips
- Use the built-in Windows Disk Cleanup tool to free up space safely.
- If you use a corporate PC, your IT department may have policies that restrict folder permissions. Contact them before changing permissions.
- Consider running Outlook as administrator once (right-click the Outlook icon, "Run as administrator") to see if that resolves the issue temporarily—this helps diagnose permission problems.
- Regularly clear your Temp folder to avoid this error in the future.
Troubleshooting
If the error persists after following the steps above, try these in order:
- Restart your computer. This clears any locked files and resets folder permissions.
- Run Outlook in Safe Mode. Press Win + R, type
outlook.exe /safe, and press Enter. If the error doesn't appear, a third-party add-in is causing it. Disable add-ins via File > Options > Add-ins. - Repair Office. Go to Control Panel > Programs > Programs and Features, select Microsoft Office, and click "Change." Choose "Quick Repair" first, then "Online Repair" if needed.
- Check antivirus software. Some antivirus programs block Outlook from writing temp files. Temporarily disable your antivirus (if safe) to test, then add Outlook to the exceptions list.
- Create a new Outlook profile. If nothing else works, your profile may be corrupted. Go to Control Panel > Mail > Show Profiles, create a new profile, and add your email account. This does not delete your emails, but you'll need to reconfigure your account.
Frequently Asked Questions
Will deleting temp files delete my emails?
No. Temp files are separate from your actual email data. Your emails are stored in .pst or .ost files, which are not in the Temp folder.
Why does this error happen only when I send attachments?
Attachments are often written to temp files before sending. If the temp folder is full or lacks permissions, the attachment can't be staged, causing the error.
Can I change the location of the temp folder?
Yes, but it's not recommended. You can set the TEMP and TMP environment variables to a different folder, but this may affect other programs. Only do this if you're comfortable with advanced settings.
Does this error affect Outlook on Mac?
No, this error is specific to the Windows version of Outlook. Mac users may see a similar error but the fix is different (usually related to disk permissions).
How often should I clear my Temp folder?
There's no set schedule, but doing it monthly is a good habit. If you frequently get this error, clearing it more often helps.
Is it safe to delete all files in the Temp folder?
Yes, files in the Temp folder are temporary by design. Windows may skip files that are in use, which is fine. You can delete the rest without worry.