Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix File System Error in Windows Photos App

· 6 min read · Home Tech

In this article
  1. What Causes the File System Error in Photos
  2. How to Fix the File System Error (Step-by-Step)
  3. Understanding the Error Codes
  4. Why the Photos App Is Prone to This Error
  5. Alternative Fixes and Built-in Tools
  6. Comparing Photos App with Other Viewers
  7. Preventing Future File System Errors
  8. Frequently Asked Questions

If the Windows Photos app shows a "file system error" (often -2147219196 or -2147418113) when you try to open or edit a picture, the fix is usually to reset the app, repair system files, or change the default library folder. Below are the exact steps to resolve it, followed by the background and related details you need to understand why it happens and how to prevent it.

What Causes the File System Error in Photos

The Photos app in Windows 10 and Windows 11 relies on the Windows Shell and the NTFS file system to read image metadata and thumbnails. When it throws a "file system error," it means the app cannot access the file or its associated data. Common triggers include:

  • Corrupted app cache or database – The Photos app stores thumbnails and metadata in a local database that can become corrupted after a crash or update.
  • File path too long – If the image is in a deeply nested folder (more than 260 characters), Windows may fail to open it.
  • OneDrive or cloud sync conflicts – Files that are "online-only" may not be fully downloaded, causing the app to error.
  • Permissions issues – The user account may not have read access to the folder where the image is stored.
  • Outdated or corrupted system files – A damaged Windows component can affect the Photos app.

How to Fix the File System Error (Step-by-Step)

Try these fixes in order. Most users resolve the issue with the first or second step.

  1. Reset the Photos app – Go to Settings > Apps > Installed apps (Windows 11) or Settings > Apps > Apps & features (Windows 10). Find "Microsoft Photos," click the three-dot menu (or the app entry), select Advanced options, then click Reset. This clears the app's cache and database without deleting your photos.
  2. Repair the app – In the same Advanced options screen, click Repair first. This is less invasive than a full reset and often fixes corrupted files.
  3. Run the Windows System File Checker – Open Command Prompt as administrator and run sfc /scannow. This scans and repairs protected system files. After it finishes, restart your PC.
  4. Check the file location – If the error appears only for certain images, move them to a folder closer to the root (e.g., C:\Pictures) and try again. This avoids long-path issues.
  5. Ensure OneDrive files are downloaded – Right-click the image in File Explorer and select Always keep on this device if it's an online-only file.
  6. Change the default library folder – If the error happens when opening the Photos app's library, go to Settings > Privacy & security > Pictures and make sure the app has permission to access your pictures. Then, in the Photos app, go to Settings and check which folders are included. Remove and re-add the problem folder.
  7. Re-register the Photos app – Open PowerShell as administrator and run: Get-AppxPackage Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}. This reinstalls the app while keeping your data.

Understanding the Error Codes

The Photos app often shows a code like -2147219196 or -2147418113. These are hexadecimal error codes that translate to:

  • 0x80070005 – Access denied (permissions issue)
  • 0x80070057 – Invalid argument (often due to a corrupted file or unsupported format)
  • 0x80004005 – Unspecified error (general failure)

While the exact code helps Microsoft support, the fixes above address the underlying causes for all of them.

Why the Photos App Is Prone to This Error

The Photos app is a Universal Windows Platform (UWP) app, meaning it runs in a sandboxed environment. It uses a SQLite database to store thumbnails and face-recognition data. If that database becomes corrupted—due to a power outage, a forced shutdown, or a failed Windows update—the app can no longer read files. Additionally, the app depends on the Windows Search indexer; if the index is outdated, it may try to access files that no longer exist or are in a different location.

Alternative Fixes and Built-in Tools

If the above steps don't work, you can use the Windows built-in troubleshooting tools:

  • Windows Store Apps Troubleshooter – Go to Settings > System > Troubleshoot > Other troubleshooters (Windows 11) or Update & Security > Troubleshoot (Windows 10). Run the "Windows Store Apps" troubleshooter.
  • DISM tool – In an elevated Command Prompt, run DISM /Online /Cleanup-Image /RestoreHealth to repair the system image. This is more thorough than SFC and can fix underlying corruption.
  • Create a new user account – If the error persists, the issue may be tied to your user profile. Create a test account and see if Photos opens there. If it does, you can migrate your files.

Comparing Photos App with Other Viewers

If the error keeps recurring, you might consider using the built-in alternative: the legacy Windows Photo Viewer (available in Windows 10, but not natively in Windows 11) or a third-party viewer like IrfanView or XnView. These are lighter and less prone to database corruption. However, the Photos app offers built-in editing, video playback, and OneDrive integration, which many users prefer. The choice depends on whether you prioritize stability or features.

Preventing Future File System Errors

To minimize the chance of this error happening again:

  • Keep Windows updated – Updates often fix bugs in UWP apps.
  • Regularly run sfc /scannow and DISM if you notice system instability.
  • Store photos on local drives rather than network drives or SD cards that may disconnect.
  • If you use OneDrive, ensure your files are fully downloaded before editing them.
  • Periodically clear the Photos app cache via Advanced options > Reset (this does not delete your photos).

Frequently Asked Questions

Will resetting the Photos app delete my photos?

No. Resetting the app clears its cache, settings, and database, but it does not delete any image files from your computer. Your photos remain in their original folders.

Why does the error only happen with certain images?

This usually indicates a corrupted image file, an unsupported format, or a file with a very long path. Try opening the image in another viewer like Paint to see if it's the file itself. If it opens there, the issue is with the Photos app's database for that file.

Can I fix the error without using Command Prompt?

Yes. The first three steps (reset, repair, and the Windows Store Apps troubleshooter) are all done through the Settings interface and don't require command-line tools. Only the SFC and DISM steps require an elevated Command Prompt.

Is this error a sign of a failing hard drive?

Not usually. The error is almost always software-related. However, if you also see other symptoms like file corruption or slow performance, it's wise to check your drive's health using a tool like CrystalDiskInfo or the Windows built-in chkdsk.

What if none of the fixes work?

As a last resort, you can reinstall Windows (keeping your files) or switch to a different photo viewer. Before reinstalling, try creating a new user account—if Photos works there, the problem is with your user profile, not the system.