| Previous | Next |
| STATUS_THREAD_NOT_IN_SESSION | STATUS_REQUEST_PAUSED |
STATUS_INVALID_WEIGHT
The scheduling or selection weight is invalid
STATUS_INVALID_WEIGHT means a caller supplied a weight that the target subsystem cannot accept. A weight is normally a relative preference rather than an absolute unit, so valid ranges and special values are defined by the specific API.
What to verify
- Check the documented minimum, maximum, and whether zero has a special meaning.
- Confirm the integer width and signedness used by the native interface.
- Validate normalization when several weights must form a bounded total.
- Reject overflow and negative values before converting from configuration text.
Configuration issues
The failure often follows a unit mismatch, percentage parsing error, or an unchecked arithmetic result. Log the original configured value and the final native value so that scaling mistakes are visible.
References
Looking for a different code? Search another status or error code.