What does HRESULT 0x00030206 (STG_S_CANNOTCONSOLIDATE) mean?

 
Previous Next
STG_S_CONSOLIDATIONFAILED STG_S_POWER_CYCLE_REQUIRED

STG_S_CANNOTCONSOLIDATE

A mode constraint, not an internal failure

This qualified success says the commit completed but consolidation was inappropriate for the way the storage was opened. Documented compound-file cases include STGM_NOSCRATCH and attempting consolidation below the outermost transacted level.

Retrying the same commit with unchanged flags and object hierarchy will not fix the condition. Consolidation must be requested at an eligible level with compatible open modes.

What to inspect

  • The complete STGM_* mode used for the root and nested storages.
  • Whether the target is the outermost transacted storage.
  • Whether STGM_NOSCRATCH or another optimization conflicts with consolidation.
  • Whether the application needs consolidation at all; the committed data is already durable according to the normal commit rules.

References

IStorage::Commit · STGM constants · Structured Storage fundamentals


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