What does HRESULT 0x87AF040A (SQLITE_E_IOERR_FSYNC) mean?

 
Previous Next
SQLITE_E_READONLY_DBMOVED SQLITE_E_CANTOPEN_CONVPATH

SQLITE_E_IOERR_FSYNC

SQLITE_E_IOERR_FSYNC corresponds to SQLITE_IOERR_FSYNC. The VFS failed while flushing previously written data from operating-system or device buffers to persistent storage.

What to check

  • Treat this as a durability problem, not simply a transient SQL failure.
  • Inspect storage-controller, filesystem, virtualization, and power-loss events at the same time.
  • Avoid changing synchronous or journal settings solely to suppress the error before the storage path is understood.
PRAGMA journal_mode;
PRAGMA synchronous;

SQLite: Result and Error Codes

SQLite: Extended Result Codes

SQLite: VFS interface

SQLite: How Database Files Can Become Corrupt


Looking for a different code? Search another status or error code.