AE Doctor logo AE Doctor
← Knowledge Base Home

Home / Knowledge Base / Error 21::31 — "preferences file is not valid"

Error / Warning

Error 21::31 — "preferences file is not valid"

The error

"preferences file is not valid (21::31)" on launch — usually follows an abrupt shutdown of AE.

Why this happens

The Prefs.txt settings database was corrupted, typically by AE being force-quit or the OS crashing mid-write to it.

How to fix it

  1. Hold Ctrl+Alt+Shift (Win) / Cmd+Opt+Shift (Mac) while launching to generate a fresh preferences file.
  2. Re-apply your custom workspace/settings afterward — the reset wipes them.

Source: Extended Error Database · error 21::31 "preferences file is not valid"

AE Doctor's free Smart Knowledge Base matches your exact error text against 100+ documented fixes like this one — Pro applies the fix directly, no manual steps. See how it works · Browse more Knowledge Base articles

AE Doctor logo AE Doctor

The system health scanner & optimizer for Adobe After Effects on Windows. Diagnose, repair, and supercharge — without leaving your panel.

Product
  • What is AE Doctor?
  • Features
  • Live Demo
  • Customer Reviews
  • Pricing
Resources
  • Knowledge Base
  • FAQ
  • Under the Hood
  • Changelog
Support
  • Contact
  • Discord Community
  • Leave Feedback
© 2026 AE Doctor. Not affiliated with Adobe. After Effects is a trademark of Adobe Inc.
License Terms Privacy Policy Refund Policy
Runs locally · No data leaves your machine