What does HRESULT 0x80240007 (WU_E_INVALIDINDEX) mean?

 
Previous Next
WU_E_TOOMANYRANGES WU_E_ITEMNOTFOUND

WU_E_INVALIDINDEX

WU_E_INVALIDINDEX is an API-level collection error. A caller tried to access an update, category, or history entry using an index outside the valid range.

How to prevent it

  • Check collection counts before indexing.
  • Remember that a new search or refresh can change collection contents; do not reuse an index from an earlier result.
  • For history queries, validate the requested start index and count before processing returned entries.

Microsoft: IUpdateSearcher::QueryHistory

Microsoft: Windows Update Agent API

Microsoft: WUA success and error codes


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