Skip to content

Problem codes: Resources and time

Resources and sets, schedules, failures, calendars and arrivals. The list is generated from the codes' own table; the meaning is the table's sentence for the code.

Code Severity Meaning About
E_ARRIVAL_MODE error A CREATE's arrival_mode is not a known one. On screen: "Block {block}: unknown arrival mode {mode}" CREATE
E_ARRIVAL_SCHEDULE error A CREATE in Schedule mode needs a declared arrival schedule. On screen: "Block {block}: arrival mode Schedule needs a schedule" / "Block {block}: {schedule} is not an arrival schedule" CREATE, schedules
E_CALENDAR_DATE error A field written as a real date is not an ISO 8601 date or timestamp. On screen: "Resource {name}: the down-until date is not valid" / "A time series date is not valid" / "Order {order}: a date is not valid" / "The calendar end is not a valid date" / "The calendar end must be after its start" simulation
E_CALENDAR_START error simulation.calendar has no start instant, or it is not ISO 8601. On screen: "The calendar must be an object" / "The calendar has no start" / "The calendar start is not a valid date" simulation
E_CREATE_ZERO_INTERARRIVAL error A CREATE block has a constant interarrival time of zero and unlimited arrivals, so simulation time could never advance. On screen: "Block {block}: interarrival time is 0 with unlimited arrivals" CREATE
E_DUPLICATE_FAILURE error Two failures share a name. On screen: "Failure {name} is defined twice" DUPLICATE, failures
E_DUPLICATE_RESOURCE error Two resources (or a resource and a set) share a name. On screen: "Resource {name} is defined twice" / "Resource set {name} reuses a resource name" DUPLICATE, resources
E_DUPLICATE_SCHEDULE error Two schedules share a name. On screen: "Schedule {name} is defined twice" DUPLICATE, schedules
E_ENTITY_COST error An entity type's holding_cost is not a number >= 0. On screen: "Entity {name}: holding cost must be 0 or more" entities
E_FAILURE_NAME error A failure has an empty name. On screen: "A failure has no name" failures
E_FAILURE_RESOURCES error A failure names no resources. On screen: "Failure {name} lists no resources" failures
E_FAILURE_RESOURCE_UNKNOWN error A failure names a resource that does not exist. On screen: "Failure {name}: resource {resource} is not declared" failures, resources
E_PREEMPT_RESOURCE_SET error preempt names a resource set; preemption works on one resource. On screen: "Block {block}: cannot preempt a resource set" resources, resource_sets
E_RANKING_REQUIRED error A ranked discipline needs a ranking_expr. On screen: "Resource {name}: {discipline} needs a ranking expression" --
E_RESOURCE_CAPACITY error A resource's capacity is below what its capacity schedule asks for. On screen: "Resource {name}: capacity {capacity} is below what schedule {schedule} needs" resources
E_RESOURCE_COST error A resource cost field is not a number >= 0. On screen: "Resource {name}: a cost must be a number, 0 or more" resources
E_RESOURCE_DISCIPLINE error A resource's queue discipline is not a known one. On screen: "Resource {name}: unknown discipline {discipline}" resources
E_RESOURCE_POWER error A resource's "power" is not an object, or one of its values is not a number >= 0. On screen: "Resource {name}: power must be an object" / "Resource {name}: power when {state} must be a number, 0 or more" resources
E_RESOURCE_SCHEDULE error A resource's capacity_schedule is not a declared capacity schedule. On screen: "Resource {name}: {schedule} is not a capacity schedule" resources, schedules
E_RESOURCE_UNKNOWN error A SEIZE/PROCESS/RELEASE block's resource_name names no declared resource or resource set. On screen: "Block {block}: resource name is missing" / "Block {block}: resource {resource} is not declared" PROCESS, RELEASE, SEIZE, resources
E_SCHEDULE_EXCEPTION error A schedule exception has no start date, or a malformed date range. On screen: "Schedule {name}: exception {index} has no start" / "Schedule {name}: an exception date is not valid" / "Schedule {name}: exception {index} ends before it starts" schedules
E_SCHEDULE_KIND error A schedule's kind is neither arrival nor capacity. On screen: "Schedule {name}: unknown kind {kind}" schedules
E_SCHEDULE_NAME error A schedule has an empty name. On screen: "A schedule has no name" schedules
E_SCHEDULE_NO_CALENDAR error A weekday schedule needs a model calendar and the model has none. On screen: "Schedule {name}: a weekday schedule needs a calendar" simulation, schedules
E_SCHEDULE_POINT error A schedule point is not a valid [duration, value] pair. On screen: "Schedule {name}: point {point} is not a duration and a value" / "Schedule {name}: point {point} duration must be above 0" / "Schedule {name}: point {point} value must be 0 or more" / "Schedule {name}: point {point} capacity must be a whole number" schedules
E_SCHEDULE_POINTS error A schedule has no points. On screen: "Schedule {name} has no points" schedules
E_SCHEDULE_WEEKLY error A weekday grid has an unknown day, a malformed band, or overlapping bands. On screen: "Schedule {name}: the weekly hours are not valid" schedules
E_SET_EMPTY error A resource set has no members. On screen: "Resource set {name} has no members" resource_sets
E_SET_MEMBER error A resource set names a member that is not a declared resource. On screen: "Resource set {name}: unknown member {member}" resource_sets
E_SET_RULE error A resource set's selection rule is not a known one. On screen: "Resource set {name}: unknown rule {rule}" resource_sets
W_RERANK_UNRANKED warning A resource's "rerank" is set but its discipline is not LowestValueFirst/HighestValueFirst, so it has no effect. On screen: "Resource {name}: rerank has no effect on {discipline}" --
W_SCHEDULE_EXCEPTION_UNUSED warning A schedule exception falls entirely outside the run window. On screen: "Schedule {name}: exception {index} is outside the run" schedules

How to fix

Each code with the usual remedy:

  • E_ARRIVAL_MODE: Set the CREATE block's arrival_mode to Interarrival, Schedule or the orders mode, spelled as the hint lists them. Leave it out to keep the default Interarrival.
  • E_ARRIVAL_SCHEDULE: Give the CREATE block a schedule_name that names a schedule declared under schedules with "kind": "arrival", or switch arrival_mode back to Interarrival.
  • E_CALENDAR_DATE: Write the date as an ISO 8601 timestamp such as 2026-01-05T06:00:00, or use a number in the base time unit. A dated field needs simulation.calendar, and its end must come after start.
  • E_CALENDAR_START: Make simulation.calendar an object with a start written as an ISO 8601 instant, for example "start": "2026-01-05T06:00:00". That instant is what model time 0 stands for.
  • E_CREATE_ZERO_INTERARRIVAL: Give the CREATE block a positive interarrival time, or set max_arrivals to a positive number. A constant gap of 0 with unlimited arrivals would never let time advance.
  • E_DUPLICATE_FAILURE: Rename one of the two entries in failures. Every failure needs a unique name.
  • E_DUPLICATE_RESOURCE: Rename one of the two. A resource and a resource set share one namespace because blocks seize either by name.
  • E_DUPLICATE_SCHEDULE: Rename one of the two entries in schedules. Schedule names must be unique, because CREATE blocks and resources refer to a schedule by its name.
  • E_ENTITY_COST: Set the entity type's holding_cost in entities to a number of 0 or more, or remove it. Use 0 when work in progress costs nothing to hold.
  • E_FAILURE_NAME: Give the failure a non-empty name in the failures section. Each failure needs a unique name.
  • E_FAILURE_RESOURCES: List at least one resource in the failure's resources, naming the resources or fleets it takes down, or remove the failure.
  • E_FAILURE_RESOURCE_UNKNOWN: Correct the name in the failure's resources list, or declare that resource under resources (or a fleet under fleets) first. The hint lists the declared names.
  • E_PREEMPT_RESOURCE_SET: Set the preempting PROCESS block's resource_name to one member resource instead of the resource set, or drop preempt. Preemption interrupts a job on a single resource.
  • E_RANKING_REQUIRED: Add a ranking_expr to the resource, such as entity.priority, or change its discipline to one that needs no ranking, such as FIFO.
  • E_RESOURCE_CAPACITY: Raise the resource's capacity to at least the largest value its capacity_schedule asks for, or lower the schedule's values. The hint gives the minimum.
  • E_RESOURCE_COST: Set the resource's cost_busy, cost_idle and cost_per_use to numbers of 0 or more. Use 0 for no cost.
  • E_RESOURCE_DISCIPLINE: Set the resource's discipline to one of FIFO, LIFO, LowestValueFirst, HighestValueFirst or Plan, spelled with that case.
  • E_RESOURCE_POWER: Make the resource's power an object of kW per unit, such as {"busy": 5.0, "idle": 1.0}, with every value a number of 0 or more.
  • E_RESOURCE_SCHEDULE: Correct the resource's capacity_schedule to the name of a schedule declared under schedules with "kind": "capacity", or declare that schedule. An arrival schedule cannot set capacity.
  • E_RESOURCE_UNKNOWN: Declare the resource in resources or resource_sets, or correct the name in the block's resource_name. Names are case sensitive.
  • E_SCHEDULE_EXCEPTION: Give each entry in the schedule's exceptions a start written as an ISO date such as 2026-12-25, and an end, if any, on or after start.
  • E_SCHEDULE_KIND: Set the schedule's kind to arrival or capacity. Leave it out for the default, arrival.
  • E_SCHEDULE_NAME: Give the schedule a non-empty, unique name in the schedules section.
  • E_SCHEDULE_NO_CALENDAR: Declare simulation.calendar with a start (and a timezone if needed), or write the schedule as points instead of a weekly grid. A weekday grid needs real dates.
  • E_SCHEDULE_POINT: Write each entry in the schedule's points as a two-element [duration, value] array, with duration above 0 and value 0 or more. A capacity schedule's values must be whole numbers.
  • E_SCHEDULE_POINTS: Add at least one [duration, value] pair to the schedule's points, or write it as a weekly grid.
  • E_SCHEDULE_WEEKLY: Fix the schedule's weekly grid: use day keys such as mon and sat, write each band as ["06:00", "14:00", 3], and keep the bands of one day from overlapping.
  • E_SET_EMPTY: List at least one declared resource in the resource set's members, or remove the set.
  • E_SET_MEMBER: Correct the member's name in the resource set's members, or declare that resource under resources first. The hint lists the declared resources.
  • E_SET_RULE: Set the resource set's rule to one of PreferredOrder, Cyclical, Random, SmallestNumberBusy or LargestRemainingCapacity.
  • W_RERANK_UNRANKED: Remove rerank from the resource, or change its discipline to LowestValueFirst or HighestValueFirst with a ranking_expr. Only a ranked queue can be re-ranked.
  • W_SCHEDULE_EXCEPTION_UNUSED: Check the exception's dates against the run window that the hint gives. Move the dates, lengthen the run, or remove the exception if it is no longer needed.

All problem codes