What does HRESULT 0x00040172 (CACHE_S_SOMECACHES_NOTUPDATED) mean?

 
Previous Next
CACHE_S_SAMECACHE OLEOBJ_S_INVALIDVERB

CACHE_S_SOMECACHES_NOTUPDATED

Only some OLE presentation caches were refreshed

CACHE_S_SOMECACHES_NOTUPDATED is HRESULT 262514 (0x00040172) from winerror.h. The documented description is “Some cache(s) not updated.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.

The cache update operation completed partially: at least one cache was updated while one or more other cache entries were not.

Evidence to preserve

  • Preserve cache connection identifiers and FORMATETC values.
  • Preserve per-entry update result.
  • Preserve running state of the source object.
  • Preserve ADVF update flags.
  • Preserve rendered checksums or timestamps for each presentation.

Where the result is encountered

  • This result can appear in IOleCache2::UpdateCache calls; record the producing interface and method.
  • This result can appear in save or print preparation for embedded objects; record the producing interface and method.
  • It can appear in offline presentation refresh across multiple aspects and formats; record the producing interface and method.

State to verify

The central question is whether the caller must identify which cache entries are current before using them for persistence, preview, or printing.

Diagnostic sequence

  • Capture the raw HRESULT 0x00040172 immediately after the returning method and record whether the caller used SUCCEEDED, FAILED, equality testing, or exception translation.
  • Verify the method-specific state: the caller must identify which cache entries are current before using them for persistence, preview, or printing.

Difference from nearby HRESULT values

CACHE_S_FORMATETC_NOTSUPPORTED explains an unsupported requested format; it reports a mixed refresh outcome across existing caches.

Correct handling, retry, and recovery

Use the current entries only where partial freshness is acceptable. Retry or replace failed entries individually; do not report the entire object cache as current.

Practical validation scenario

A container refreshes icon, content, and thumbnail caches before save. Content and icon update, thumbnail does not; the save path preserves the successful entries and marks the thumbnail stale for later repair.

Developer and administrator guidance

References


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