What does HRESULT 0xC800020F (hrRecoveredWithErrors) mean?

 
Previous Next
hrInvalidBackup hrMissingLogFile

hrRecoveredWithErrors

Operational meaning

hrRecoveredWithErrors means repair or restore completed far enough to produce output but encountered errors that affect confidence in the result.

The stored value is 0xC800020F (negative JET error -527; -527). Current ESE documentation uses JET_errRecoveredWithErrors for the corresponding published JET condition.

The first useful distinction is that this is not clean success; using the database without validation can conceal lost or inconsistent data. Start by collecting every preceding repair event, affected page/table, skipped operation, final database state, and application-level verification results.

Before altering files or retrying

  • Code-specific observation: collect every preceding repair event, affected page/table, skipped operation, final database state, and application-level verification results.

Comparison points

It specifically means that this is not clean success; using the database without validation can conceal lost or inconsistent data. Related values below can appear in the same workflow but require a different response:

hrBadBackupDatabaseSizethe backed-up database file length is not aligned to the database page-size boundary expected by ESE
hrConsistentTimeMismatchthe database last-consistent timestamp does not match the recovery or backup lineage being applied
hrDatabaseInconsistentthe database is not in a clean transaction-consistent state and requires recovery before normal use

Objects and state involved

Diagnostic layerdatabase, patch, log, and backup metadata that establish one recoverable lineage
Relevant API surfacehard recovery, database-header inspection, patch application, and post-restore validation
Code-specific conditionrepair or restore completed far enough to produce output but encountered errors that affect confidence in the result
Narrow corrective directionpreserve the original, validate the recovered copy, and prefer restoration from a known-good backup where available

A hard-recovery failure leaves the restored database invalid; retry begins from a fresh restored copy. Database state, signature, page size, consistent time, and required logs must agree.

Recommended handling

  1. Record it, 0xC800020F, the API name, the current phase, and all live context or file owners.
  2. Verify the condition by collecting every preceding repair event, affected page/table, skipped operation, final database state, and application-level verification results.
  3. Apply only the targeted fix: preserve the original, validate the recovered copy, and prefer restoration from a known-good backup where available.

Acceptance criteria for a fix

A useful regression test should force the condition “repair or restore completed far enough to produce output but encountered errors that affect confidence in the result”, call one documented API transition, and assert the exact HRESULT.

Actions that can make diagnosis worse

  • Do not attach a dirty or mismatched database as if it were clean.
  • Do not modify the only backup copy in place.

Technical references


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