Photos App File System Error: How to Fix It
In this article
The "File System Error" in the Windows Photos app occurs when the application cannot read or write image data due to corrupted cache files, permission issues, or conflicts with other media software. The most effective immediate fix is to clear the app's local cache and reset its permissions, which resolves the majority of these access violations without requiring a full reinstall.
What You'll Need
- A Windows 10 or Windows 11 PC
- Administrator privileges on your account
- The built-in Settings app and File Explorer
Step-by-Step
- Close the Photos App Completely: Ensure the Photos app is not running in the background. Press Ctrl + Shift + Esc to open Task Manager. If you see "Microsoft Photos" listed under Processes, right-click it and select "End Task." This prevents file locking during the repair process.
- Clear the App Cache via Run Command: Press Win + R to open the Run dialog. Type
%localappdata%\Packagesand press Enter. This opens the folder containing all installed app data. Scroll down and locate the folder namedMicrosoft.Windows.Photos_8wekyb3d8bbwe. Note that the suffix may vary slightly depending on your Windows version, but it will always start withMicrosoft.Windows.Photos. - Delete the LocalState Folder: Inside the Photos package folder, find and delete the subfolder named
LocalState. This folder stores temporary thumbnails and database indexes. Deleting it forces the Photos app to rebuild these files from scratch the next time you open it. Do not delete the entire package folder, as this removes your app settings. - Reset the App via Settings: Open the Windows Settings app (Win + I). Navigate to Apps > Installed Apps (or Apps & Features on older versions). Search for "Microsoft Photos" in the list. Click the three dots ⋮ next to it and select Advanced options.
- Perform a Repair and Reset: Scroll down to the "Reset" section. First, click the Repair button. This attempts to fix the app without deleting your data. If the error persists, return to this screen and click Reset. Warning: This clears the app's local data, including cached thumbnails and preferences, but does not delete your actual photos from your hard drive.
- Check File Permissions: If the error continues, navigate back to
%localappdata%\Packagesusing File Explorer. Right-click theMicrosoft.Windows.Photos_...folder and select Properties. Go to the Security tab. Ensure your user account has "Full Control" checked. If not, click Edit, select your user, check "Full Control," and apply changes. Incorrect permissions often block the app from writing new cache files. - Reinstall the App if Necessary: If resetting fails, open PowerShell as Administrator (right-click Start > Terminal/PowerShell Admin). Run the command:
Get-AppxPackage *photos* | Remove-AppxPackage. Then, restart your computer. After reboot, go to the Microsoft Store, search for "Microsoft Photos," and reinstall it. This ensures a clean installation of all core components.
Common Mistakes
Users frequently attempt to delete the entire Photos app package folder instead of just the LocalState subfolder. This can lead to significant configuration loss and requires a full re-download of the app. Another common error is failing to close the app via Task Manager before clearing cache files, which results in "Access Denied" errors because the system holds the files open. Additionally, some users try to move their photo library to an external drive while the app is still pointing to the original internal location, causing path errors that mimic file system failures.
Tips
If you have a large collection of photos, consider using the native Windows Explorer to manage file organization rather than relying solely on the Photos app's import feature. Regularly restarting your computer can prevent temporary file locks from accumulating. For users experiencing this error specifically with RAW files, ensure your camera manufacturer's codec pack is installed, as missing codecs can trigger generic file system errors when the Photos app tries to decode unsupported formats. Always back up your LocalState folder before deleting it, just in case you need to restore specific thumbnail caches later.
Troubleshooting
If the steps above do not resolve the issue, the problem may lie outside the Photos app itself. First, run the System File Checker by opening Command Prompt as Administrator and typing sfc /scannow. This scans and repairs corrupted Windows system files that might be affecting app performance. Second, check for conflicting third-party software. Applications like antivirus programs, cloud storage sync tools (OneDrive, Dropbox), or other photo editors can lock image files. Temporarily disable these services to see if the Photos app gains access. Third, verify that your disk is not failing. Run chkdsk C: /f in Command Prompt to check for file system corruption on your drive. Finally, if you are on Windows 11, ensure your OS is fully updated, as Microsoft frequently patches bugs related to the Photos app's media engine through cumulative updates.
Frequently Asked Questions
Will resetting the Photos app delete my actual photos?
No. Resetting the app only clears its internal cache, settings, and temporary database files. Your original images remain stored in their respective folders on your hard drive or cloud storage.
Why does the Photos app show a file system error for specific files only?
This usually indicates that those specific files are corrupted, encrypted, or locked by another program. Try opening them in a different viewer like Paint or IrfanView to isolate whether the issue is with the file or the app.
Can I fix this error without losing my app preferences?
Yes. Start with the "Repair" button in Advanced Options rather than "Reset." Repair fixes broken app files while preserving your user settings and login status.
Does OneDrive cause this file system error?
It can. If OneDrive is syncing a folder that contains active image files, it may lock them temporarily. Pause OneDrive syncing briefly or move the problematic photos out of the synced folder to test if this resolves the conflict.
Is it safe to delete the LocalState folder manually?
Yes, it is safe. This folder contains non-essential cache data. The Photos app will automatically recreate it with fresh data upon next launch. It is a standard troubleshooting step for this specific error.