Site icon EfmSoft

What does HRESULT 0x80041313 (SCHED_E_UNKNOWN_OBJECT_VERSION) mean?

 
Previous Next
SCHED_E_NO_SECURITY_SERVICES SCHED_E_UNSUPPORTED_ACCOUNT_OPTION

SCHED_E_UNKNOWN_OBJECT_VERSION

The task object version is unsupported or invalid

SCHED_E_UNKNOWN_OBJECT_VERSION is the failure HRESULT 0x80041313 (-2147216621 as a signed 32-bit value). Its severity bit is set, the facility field is 4 (FACILITY_ITF), and its facility-specific code is 0x1313. AllStat describes the result as “The task object version is either unsupported or invalid.”

Operation and state

The object is recognized as scheduler data, but its declared or encoded version is outside the valid set for the reader. Microsoft lists this result for legacy ITaskScheduler::Activate, making API generation and persisted representation central to diagnosis. In practical terms, it is returned when a stored task is activated or parsed and its version metadata cannot be accepted by the scheduler implementation or client API. Preserve it symbolically because a generic COM failure path loses its scheduler-specific recovery decision.

Failure paths to examine

Rank these explanations for it by matching them to the exact method, target and scheduler state observed at failure time.

Data to collect before changing anything

The decisive question for it is not whether Task Scheduler works in general, but which object, service state, compatibility rule or execution instance owned the failed operation. Before reacting to this result, collect evidence rather than restarting services, rewriting task XML or changing security settings.

Step-by-step diagnosis

  1. Do not overwrite the object before preserving its original representation.
  2. Try opening it with the scheduler generation that created it, when that environment is trusted and available.
  3. Compare task compatibility and schema declarations with the target Windows version.
  4. Distinguish unsupported but internally consistent data from random corruption in the version field.
  5. Convert by exporting and re-registering through supported APIs rather than editing version bytes.

Retry policy and restoration

Retrying the same reader against the same object will repeat the failure. Use a compatible scheduler API to export the task, then register a validated definition for the target system. If the version field is corrupt and no trusted source exists, recreate the task from product configuration. The owner of the higher-level workflow should define whether this result is terminal, retryable after a state change, or converted into an administrative action.

Limits of this HRESULT

The status does not mean the task action is incompatible with Windows, and it is not the same as <code>SCHED_E_TASK_NOT_V1_COMPAT</code>. The latter concerns feature compatibility of a valid task definition, not the persisted object version itself. Logging only the decimal value without task path, method and target computer is insufficient to explain this result.

Neighboring status codes

SCHED_E_INVALID_TASK rejects an invalid object more generally. SCHED_E_TASK_NOT_V1_COMPAT identifies properties that cannot be represented for previous scheduler versions. It is specifically about the object version.

Concrete troubleshooting case

An installer restores a.JOB file created on a later system into an older management environment. ITaskScheduler::Activate rejects the version. The migration tool exports the task on a compatible host and registers an equivalent Task Scheduler 2.0 XML definition on the target. A regression test should reproduce it, assert the code-specific evidence, then change only the decisive condition and verify the expected recovery.

Official Microsoft references


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

Exit mobile version