E-TE0501 — Value out of range

Error Type

Type Error

Phase

converting values while building or compiling the model

Python exception

ValueError

Message

Value `{value}` is out of the valid range: {range}

Cause

A value lies outside the valid range for its target kind — for example, a negative number where a natural number is required, an integer other than 0/1 used as a binary dict key, a string key that is not among the allowed literals, or a category-label value that is not one of the defined labels.

Fix

Provide a value within the range shown in the message, or change the declared kind (e.g. use an integer type instead of a natural number if negatives are legitimate).