What does HRESULT 0x00030204 (STG_S_MULTIPLEOPENS) mean?

 
Previous Next
STG_S_MONITORING STG_S_CONSOLIDATIONFAILED

STG_S_MULTIPLEOPENS

The commit succeeded; compaction did not

This qualified success is returned when IStorage::Commit publishes the changes but cannot consolidate the compound file because it has multiple opens, specifically the documented STGM_NOSNAPSHOT case. Consolidation is a compaction request; it is separate from persistence of the transaction.

Rolling back or reporting “save failed” is incorrect. The application should report the data as committed and handle the missed consolidation as maintenance information.

What to inspect

  • Whether STGC_CONSOLIDATE was requested.
  • Every open IStorage, IStream, and external process that may hold the same compound file.
  • The use of STGM_NOSNAPSHOT and the lifetime of duplicated storage interfaces.
  • Whether consolidation can be retried later after extra opens are closed.

References

IStorage::Commit · STGM constants · Structured Storage overview


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