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'sarrival_modetoInterarrival,Scheduleor the orders mode, spelled as the hint lists them. Leave it out to keep the defaultInterarrival.E_ARRIVAL_SCHEDULE: Give the CREATE block aschedule_namethat names a schedule declared underscheduleswith"kind": "arrival", or switcharrival_modeback toInterarrival.E_CALENDAR_DATE: Write the date as an ISO 8601 timestamp such as2026-01-05T06:00:00, or use a number in the base time unit. A dated field needssimulation.calendar, and itsendmust come afterstart.E_CALENDAR_START: Makesimulation.calendaran object with astartwritten 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 setmax_arrivalsto 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 infailures. Every failure needs a uniquename.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 inschedules. Schedule names must be unique, because CREATE blocks and resources refer to a schedule by its name.E_ENTITY_COST: Set the entity type'sholding_costinentitiesto 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-emptynamein thefailuressection. Each failure needs a unique name.E_FAILURE_RESOURCES: List at least one resource in the failure'sresources, naming the resources or fleets it takes down, or remove the failure.E_FAILURE_RESOURCE_UNKNOWN: Correct the name in the failure'sresourceslist, or declare that resource underresources(or a fleet underfleets) first. The hint lists the declared names.E_PREEMPT_RESOURCE_SET: Set the preempting PROCESS block'sresource_nameto one member resource instead of the resource set, or droppreempt. Preemption interrupts a job on a single resource.E_RANKING_REQUIRED: Add aranking_exprto the resource, such asentity.priority, or change itsdisciplineto one that needs no ranking, such asFIFO.E_RESOURCE_CAPACITY: Raise the resource'scapacityto at least the largest value itscapacity_scheduleasks for, or lower the schedule's values. The hint gives the minimum.E_RESOURCE_COST: Set the resource'scost_busy,cost_idleandcost_per_useto numbers of 0 or more. Use 0 for no cost.E_RESOURCE_DISCIPLINE: Set the resource'sdisciplineto one ofFIFO,LIFO,LowestValueFirst,HighestValueFirstorPlan, spelled with that case.E_RESOURCE_POWER: Make the resource'spoweran 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'scapacity_scheduleto the name of a schedule declared underscheduleswith"kind": "capacity", or declare that schedule. An arrival schedule cannot set capacity.E_RESOURCE_UNKNOWN: Declare the resource inresourcesorresource_sets, or correct the name in the block'sresource_name. Names are case sensitive.E_SCHEDULE_EXCEPTION: Give each entry in the schedule'sexceptionsastartwritten as an ISO date such as2026-12-25, and anend, if any, on or afterstart.E_SCHEDULE_KIND: Set the schedule'skindtoarrivalorcapacity. Leave it out for the default,arrival.E_SCHEDULE_NAME: Give the schedule a non-empty, uniquenamein theschedulessection.E_SCHEDULE_NO_CALENDAR: Declaresimulation.calendarwith astart(and atimezoneif needed), or write the schedule aspointsinstead of aweeklygrid. A weekday grid needs real dates.E_SCHEDULE_POINT: Write each entry in the schedule'spointsas 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'spoints, or write it as aweeklygrid.E_SCHEDULE_WEEKLY: Fix the schedule'sweeklygrid: use day keys such asmonandsat, 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'smembers, or remove the set.E_SET_MEMBER: Correct the member's name in the resource set'smembers, or declare that resource underresourcesfirst. The hint lists the declared resources.E_SET_RULE: Set the resource set'sruleto one ofPreferredOrder,Cyclical,Random,SmallestNumberBusyorLargestRemainingCapacity.W_RERANK_UNRANKED: Removererankfrom the resource, or change itsdisciplinetoLowestValueFirstorHighestValueFirstwith aranking_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.