| Previous | Next |
| STG_S_MULTIPLEOPENS | STG_S_CANNOTCONSOLIDATE |
STG_S_CONSOLIDATIONFAILED
Preservation succeeded even though compaction failed
STG_S_CONSOLIDATIONFAILED means the commit itself succeeded. The optional attempt to consolidate the storage failed internally; Microsoft documentation gives memory allocation failure as an example. The file can therefore contain the new committed data while remaining larger or more fragmented than desired.
Do not repeat the transaction blindly. Replaying application changes after a successful commit can duplicate logical updates.
Diagnostic checklist
- Confirm that
STGC_CONSOLIDATEwas requested and preserve the exact HRESULT. - Record memory pressure, temporary-storage availability, file size, and free disk space.
- Reopen and validate the committed storage before scheduling a later maintenance consolidation.
- Distinguish this code from
STG_S_CANNOTCONSOLIDATE, which identifies an unsuitable mode or transaction level.
References
IStorage::Commit · Microsoft COM storage HRESULTs · Microsoft Compound File Binary format
Looking for a different code? Search another status or error code.
