| Previous | Next |
| SCHED_E_NAMESPACE | SCHED_E_MISSINGNODE |
SCHED_E_INVALIDVALUE
SCHED_E_INVALIDVALUE means a value in the task XML is incorrectly formatted or outside the permitted range. It narrows the investigation to a field value, but the HRESULT does not name the field; retaining the exact generated XML and registration diagnostics is essential.
High-value checks
- Validate date and time boundaries, duration values, repetition intervals, numeric settings, booleans, and enumerated values against the Task Scheduler schema.
- Check culture-sensitive serialization: a local date or decimal representation can be valid text but invalid where the schema expects a specific XML datatype.
- Verify values after substitution of environment-specific variables, because a template can validate before deployment and fail after expansion.
Do not replace values with arbitrary defaults
Find the offending field, determine the intended semantic value, and generate the schema-valid form of that value. A default duration, start time, or execution limit can materially change when or how often a task runs.
Microsoft: Task Scheduler status codes · Microsoft: Task Scheduler schema · Microsoft: schema elements
Looking for a different code? Search another status or error code.