# Problem codes: Blocks, links and routing

Blocks and their parameters, distributions, links, decisions, queues, routings and orders. The list is generated from the codes' own table; the meaning is the table's sentence for the code.

| Code | Severity | Meaning | About |
|---|---|---|---|
| <span id="e_batch_carrier_capacity"></span>`E_BATCH_CARRIER_CAPACITY` | error | A carrier BATCH's carrier_capacity came out below 0 for a carrier (a run-time error). | [BATCH](../blocks/batch.md) |
| <span id="e_batch_member_time"></span>`E_BATCH_MEMBER_TIME` | error | A BATCH has a member_time or a carrier_capacity but no carrier_type. On screen: "Block {block}: member time and carrier capacity need a carrier BATCH" | [BATCH](../blocks/batch.md) |
| <span id="e_buffer_capacity"></span>`E_BUFFER_CAPACITY` | error | A BUFFER's capacity, or a SEIZE/PROCESS queue_capacity, is negative. On screen: "Block {block}: capacity must be 0 or more" | [BUFFER](../blocks/buffer.md), [PROCESS](../blocks/process.md), [SEIZE](../blocks/seize.md) |
| <span id="e_building"></span>`E_BUILDING` | error | The building section is malformed (an extent, room, opening, label or fixture of the wrong shape, an unknown colour or field, a room named twice). On screen: "The building layout is not valid" | -- |
| <span id="e_create_no_output"></span>`E_CREATE_NO_OUTPUT` | error | A CREATE block has no outgoing link. On screen: "Block {block}: CREATE has no link out" | [CREATE](../blocks/create.md) |
| <span id="e_decide_branches"></span>`E_DECIDE_BRANCHES` | error | A DECIDE has more probs/conditions than outgoing links. On screen: "Block {block}: {n} probabilities but only {links} links out" / "Block {block}: {n} conditions but only {links} links out" | [DECIDE](../blocks/decide.md) |
| <span id="e_decide_fallback"></span>`E_DECIDE_FALLBACK` | error | A Policy-mode DECIDE's fallback is not first/random/shortest. On screen: "Block {block}: unknown fallback {fallback}" | [DECIDE](../blocks/decide.md) |
| <span id="e_decide_policy_name"></span>`E_DECIDE_POLICY_NAME` | error | A Policy-mode DECIDE has an empty policy name. On screen: "Block {block}: Policy mode needs a policy name" | [DECIDE](../blocks/decide.md) |
| <span id="e_decide_probs"></span>`E_DECIDE_PROBS` | error | A DECIDE's chance probabilities do not fit its branches. On screen: "Block {block}: probabilities add up to {total}, over 1" / "Block {block}: probabilities sum to {total}; add an ELSE link" | [DECIDE](../blocks/decide.md) |
| <span id="e_decide_queue_exprs"></span>`E_DECIDE_QUEUE_EXPRS` | error | A Policy-mode DECIDE with fallback "shortest" needs one queue_exprs entry per outgoing link. On screen: "Block {block}: shortest needs {links} queue expressions, has {n}" | [DECIDE](../blocks/decide.md) |
| <span id="e_decide_rule"></span>`E_DECIDE_RULE` | error | A Rule-mode DECIDE's routing rule is not usable (an unknown kind, conditions that do not fit its exits, a limit that is not a whole number &gt;= 0, no attribute name, a key it does not take), or it names a number of exits other than its outgoing links, or an exit names a target piece that is not a CONVEYOR its loads reach. On screen: "Block {block}: its routing rule does not work" / "Block {block}: {n} rule exits but {links} links out" / "Block {block}: exit {exit} names {target}, no conveyor on its way" | [CONVEYOR](../blocks/conveyor.md), [DECIDE](../blocks/decide.md) |
| <span id="e_deterministic_no_mean"></span>`E_DETERMINISTIC_NO_MEAN` | error | simulation.deterministic is set and a duration spec's distribution has no finite mean for its params (e.g. Cauchy, always; Exponential with rate &lt;= 0). On screen: "{label}: {dist} has no finite mean for deterministic mode" | -- |
| <span id="e_dispose_has_output"></span>`E_DISPOSE_HAS_OUTPUT` | error | A DISPOSE block has an outgoing link. On screen: "Block {block}: DISPOSE must have no link out" | [DISPOSE](../blocks/dispose.md) |
| <span id="e_distribution_missing"></span>`E_DISTRIBUTION_MISSING` | error | A duration spec (link delay, failure uptime/downtime) names no distribution. On screen: "{where}: delay has no distribution" / "Failure {name}: {key} has no distribution" | -- |
| <span id="e_dist_param_unknown"></span>`E_DIST_PARAM_UNKNOWN` | error | A dist_params key the distribution does not take (it would be ignored). On screen: "{label}: {dist} takes no setting {key}" | -- |
| <span id="e_dist_param_value"></span>`E_DIST_PARAM_VALUE` | error | A dist_params value the distribution cannot use: a choice outside its list, a jitter that is negative or not a number, an empty value, or one outside the bounds its registry entry states (rate &gt; 0, low &lt;= high). On screen: "{label}: {dist} {param} is not valid" / "{label}: {dist} {param} is out of range" | -- |
| <span id="e_duplicate_block"></span>`E_DUPLICATE_BLOCK` | error | Two blocks share a name. On screen: "Block name {block} is used twice" | [DUPLICATE](../blocks/duplicate.md) |
| <span id="e_duplicate_station"></span>`E_DUPLICATE_STATION` | error | Two STATION blocks answer to the same station name. On screen: "Block {block}: station name {station} is already used" | [DUPLICATE](../blocks/duplicate.md), [STATION](../blocks/station.md) |
| <span id="e_field_range"></span>`E_FIELD_RANGE` | error | A numeric field of a section (a fleet, a charger, a level, a series, ...) is outside the bounds the field table and the published schema state. On screen: "{name}: {field} must be a number {rule}" | -- |
| <span id="e_field_type"></span>`E_FIELD_TYPE` | error | A field of `simulation` or of a section's record holds a value of a JSON type its schema does not allow (text where a number goes); the run would stop on it. On screen: "Field {key} must be {wanted}" | -- |
| <span id="e_hold_space_target"></span>`E_HOLD_SPACE_TARGET` | error | hold_until_space is set but the block it reserves in (space_of, or the first link's target) is not a BUFFER with capacity &gt; 0 or a SEIZE/PROCESS with queue_capacity &gt; 0. On screen: "Block {block}: {target} has no places to reserve" / "Block {block}: no place is reserved across a timed link" | [BUFFER](../blocks/buffer.md), [HOLD](../blocks/hold.md), [PROCESS](../blocks/process.md), [SEIZE](../blocks/seize.md) |
| <span id="e_item_code"></span>`E_ITEM_CODE` | error | An item's code (a submodel definition's `code`) does not parse, lacks its class, gives a hook the wrong arguments, defines none of the five hooks, or is too long. On screen: "Item {definition}: its code does not parse at line {line}: {message}" / "Item {definition}: its code has no class {class}" / "Item {definition}: {hook} takes ({wanted})" / "Item {definition}: class {class} has none of the five hooks" / "Item {definition}: its code is longer than 200000 characters" | -- |
| <span id="e_item_hook"></span>`E_ITEM_HOOK` | error | An item's code is wired wrong: a LOGIC hook outside an item with code, a hook its class does not define, a timer or signals without their hook, a watched name that is not a variable, item code at the top of the file, or an "item" routing rule on a block outside an item with code. On screen: "Block {block}: a LOGIC hook needs an item with code" / "Block {block}: an item routing rule needs an item with code" / "Block {block}: hook is entry, exit or empty, not {value}" / "Item {definition}: block {block} calls {hook}, which class {class} does not define" / "Item {definition}: a timer above zero and a timer hook go together" / "Item {definition}: it watches {variable}, which is not a model variable" / "Item {definition}: a list of signals and a signal hook go together" / "Item code belongs on a submodel definition, not the file top" | [LOGIC](../blocks/logic.md) |
| <span id="e_link_area"></span>`E_LINK_AREA` | error | A link's time or capacity cannot be read as written: an old transfer_time the migration to schema 32 could not move into the delay (the link has a delay too), or a capacity a submodel port would copy onto several links. On screen: "Link {where} has an old transfer time; put it in the delay" / "Link {where}: its capacity would be copied onto {count} links" / "Link {where}: a delay before it hides its delay and capacity" | -- |
| <span id="e_link_unknown_block"></span>`E_LINK_UNKNOWN_BLOCK` | error | A link names a block that does not exist. On screen: "A link points to unknown block {other}" | -- |
| <span id="e_logic_class_unknown"></span>`E_LOGIC_CLASS_UNKNOWN` | error | A LOGIC block names a class the logic module (nagasim.core.custom_logic) does not define, so a run from an agent tool would fail on it. | [LOGIC](../blocks/logic.md) |
| <span id="e_match_attribute"></span>`E_MATCH_ATTRIBUTE` | error | A MATCH match_on is not an attribute name (an identifier, optionally written entity.&lt;name&gt;). On screen: "Block {block}: match value is not an attribute name" | [MATCH](../blocks/match.md) |
| <span id="e_model_json"></span>`E_MODEL_JSON` | error | The model file is not valid JSON, or not one JSON object (`naga validate`). | -- |
| <span id="e_no_create"></span>`E_NO_CREATE` | error | The model has no CREATE block, so nothing ever arrives. On screen: "The model has no CREATE block" | [CREATE](../blocks/create.md) |
| <span id="e_no_dispose"></span>`E_NO_DISPOSE` | error | The model has no DISPOSE block, so nothing ever leaves. On screen: "The model has no DISPOSE block" | [DISPOSE](../blocks/dispose.md) |
| <span id="e_on_preempt"></span>`E_ON_PREEMPT` | error | on_preempt is neither "resume" nor "restart". On screen: "Block {block}: unknown preempt mode {mode}" | -- |
| <span id="e_order_entity_type"></span>`E_ORDER_ENTITY_TYPE` | error | An order names an entity type the model does not declare. On screen: "Order {order}: unknown entity type {type}" | [`entities`](../model-file/entities.md), [`orders`](../model-file/orders.md) |
| <span id="e_order_field"></span>`E_ORDER_FIELD` | error | An order field is malformed: a non-number, a negative quantity, or a non-scalar free attribute. On screen: "Order {index} is not an object" / "Order {order}: plan must be an object" / "Order {order}: planned start at {station} must be a number" / "Order {order}: {key} must be a number" / "Order {order}: {key} must be a string" / "Order {order}: attributes must be an object" / "Order {order}: {key} must be at least {minimum}" / "Order {order}: {key} is not a valid attribute name" / "Order {order}: {key} must be a number, text or yes/no" | [`orders`](../model-file/orders.md) |
| <span id="e_order_id"></span>`E_ORDER_ID` | error | An order has an empty or duplicate id. On screen: "An order has no id" / "Order id {order} is used twice" | [`orders`](../model-file/orders.md) |
| <span id="e_order_source"></span>`E_ORDER_SOURCE` | error | An order's `source` is not a CREATE block in "Orders" arrival mode. On screen: "Order {order}: {source} is not an Orders-mode CREATE block" | [CREATE](../blocks/create.md), [`orders`](../model-file/orders.md) |
| <span id="e_pallet_empty"></span>`E_PALLET_EMPTY` | error | A pallet pattern can never fill a pallet: its stack is empty, no layer, item or height limit closes it, no slot fits under the limits, or the tare and one item already pass the weight limit. On screen: "Pallet pattern {name}: its stack is empty" / "Pallet pattern {name}: no limit closes the pallet" / "Pallet pattern {name}: no slot fits under the limits" / "Pallet pattern {name}: one item passes the weight limit" | -- |
| <span id="e_pallet_item"></span>`E_PALLET_ITEM` | error | An item alone is heavier than its pallet's weight limit, so no pallet can ever take it. On screen: "An item is heavier than its pallet can take" | -- |
| <span id="e_pallet_overhang"></span>`E_PALLET_OVERHANG` | error | A slot of a pallet layer passes the pallet's edge by more than the pattern's overhang. On screen: "Pallet pattern {name}: slot {slot} of layer {layer} overhangs by {by}" | -- |
| <span id="e_pallet_overlap"></span>`E_PALLET_OVERLAP` | error | Two slots of one pallet layer overlap, the items' rotations included. On screen: "Pallet pattern {name}: slots {a} and {b} of layer {layer} overlap" | -- |
| <span id="e_pallet_shape"></span>`E_PALLET_SHAPE` | error | A pallet pattern has an empty or duplicate name, a missing or non-positive pallet or item dimension, a bad slot, a negative weight, sheet or overhang, a limit &lt;= 0, or a stack entry naming an unknown layer or transform. On screen: "Pallet pattern {index} has no name or a repeated one" / "Pallet pattern {name}: its stack names no layer {layer}" / "Pallet pattern {name}: unknown transform {transform}" | -- |
| <span id="e_pallet_unknown"></span>`E_PALLET_UNKNOWN` | error | A carrier BATCH names a pallet pattern the model does not declare, or a robot palletizes by a pattern chosen per pallet, which cannot be planned before the run. On screen: "{block}: no pallet pattern named {pattern}" / "{block}: a robot needs its pallet pattern named" | [BATCH](../blocks/batch.md) |
| <span id="e_param_missing"></span>`E_PARAM_MISSING` | error | A param the block type declares as required is absent. On screen: "Block {block}: {key} is required" | -- |
| <span id="e_param_type"></span>`E_PARAM_TYPE` | error | A param has the wrong Python type for its ParamSpec. On screen: "Block {block}: wrong kind of value for {key}" / "Block {block}: a setting has a wrong value" | -- |
| <span id="e_param_unknown"></span>`E_PARAM_UNKNOWN` | error | A param key this block type does not declare. On screen: "Block {block}: unknown setting {key}" | -- |
| <span id="e_plugin_not_loaded"></span>`E_PLUGIN_NOT_LOADED` | error | The block's `type` is one the model lists in info.requires_plugins, and no loaded plugin provides it. | -- |
| <span id="e_preempt_blocking"></span>`E_PREEMPT_BLOCKING` | error | preempt names a resource a station holds while blocked after service; a finished part cannot be interrupted. On screen: "Block {block}: preempt on {resource}, held while blocked" | -- |
| <span id="e_preempt_scope"></span>`E_PREEMPT_SCOPE` | error | preempt is set where the block does not own the whole service (its action is not "Seize Delay Release"), or another block holds the same resource across blocks. On screen: "Block {block}: preempt needs Seize Delay Release" / "Block {block}: {other} holds {resource} across blocks" | -- |
| <span id="e_queue_no_leave_link"></span>`E_QUEUE_NO_LEAVE_LINK` | error | A block with balk_if/renege_after has no second outgoing link for the entities that leave without service. On screen: "Block {block}: balk or renege needs a second link out" | -- |
| <span id="e_queue_row"></span>`E_QUEUE_ROW` | error | A block's queue_row is not {"anchor": [x, y], "direction": degrees}, with x and y in -1..2 over the picture and 0 &lt;= direction &lt; 360. On screen: "Block {block}: queue row {reason}" | -- |
| <span id="e_record_kind"></span>`E_RECORD_KIND` | error | A RECORD block's kind is not a known user-statistic kind. On screen: "Block {block}: unknown statistic kind {kind}" | [RECORD](../blocks/record.md) |
| <span id="e_record_kind_conflict"></span>`E_RECORD_KIND_CONFLICT` | error | Two RECORD blocks give the same statistic different kinds. On screen: "Block {block}: {stat} is already kind {prior}" | [RECORD](../blocks/record.md) |
| <span id="e_record_stat_name"></span>`E_RECORD_STAT_NAME` | error | A RECORD block has an empty stat_name. On screen: "Block {block}: statistic name is empty" | [RECORD](../blocks/record.md) |
| <span id="e_replay_column"></span>`E_REPLAY_COLUMN` | error | A column the replay needs (order, resource, start, end) is not found, or a column mapping names a field or a column that does not exist. | -- |
| <span id="e_replay_file"></span>`E_REPLAY_FILE` | error | A schedule or due-date file cannot be read: a missing file, a format other than CSV or Excel, no rows, or times that mix numbers and dates. | -- |
| <span id="e_replay_input"></span>`E_REPLAY_INPUT` | error | A replay setting is out of range: the spread, the replications, or a breakdown that names an unknown resource or a non-positive time. | -- |
| <span id="e_robot"></span>`E_ROBOT` | error | A robot has an empty or duplicate name, an unknown structure, missing dimensions, or an axis without a valid range, speed or acceleration. On screen: "Robot {index} has no name or a repeated one" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_intercept"></span>`E_ROBOT_INTERCEPT` | error | A robot pick from a moving belt is not the cycle's first move, not a ptp, not the cycle's only one, names no belt divert flagged for it, never reaches the part, meets it past the next point on the belt, or is planned per slot by a cycle that ends at the slot or places a layer at a time. On screen: "{block}: the pick from belt {belt} must be the cycle's first move" / "{block}: a pick from a moving belt is a ptp move" / "{block}: one pick from a moving belt per cycle" / "{block}: target {target} names no robot pick on a belt" / "{block}: the robot never reaches a part on {belt}" / "{block}: its meeting point {meet} m is past {limit} m on {belt}" / "{block}: its belt-pick cycle must end at a fixed target" / "{block}: a belt pick places one box at a time" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_lin"></span>`E_ROBOT_LIN` | error | A straight-line robot move leaves the reach or changes the arm's configuration on the way. On screen: "{block}: the robot cannot keep a straight line to {target}" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_move_time"></span>`E_ROBOT_MOVE_TIME` | error | A robot move given a time is faster than the axis speeds and accelerations allow. On screen: "{block}: the move to {target} needs {needed} s, not {given} s" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_reach"></span>`E_ROBOT_REACH` | error | A robot target is out of reach, outside an axis range, or tilted for a robot that cannot tilt. On screen: "{block}: the robot cannot reach {target}" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_singular"></span>`E_ROBOT_SINGULAR` | error | A straight-line robot move passes a singular pose, where the joints would have to turn without limit. On screen: "{block}: the line to {target} passes a singular pose" | [`robots`](../model-file/robots.md) |
| <span id="e_robot_target"></span>`E_ROBOT_TARGET` | error | A robot move names no target of its block, a target is not a joint vector, a frame or a point on a block, or a pattern BATCH or SEPARATE defines the per-slot target slot or slot_above itself. On screen: "{block}: no target named {target}" / "{block}: target {target} is not joints, a frame or a block point" / "{block}: target {target} is set per pallet slot, not here" / "{block}: target {target} needs its block placed on the floor plan" | [BATCH](../blocks/batch.md), [SEPARATE](../blocks/separate.md), [`robots`](../model-file/robots.md) |
| <span id="e_robot_unknown"></span>`E_ROBOT_UNKNOWN` | error | A MOTION block, or a BATCH or SEPARATE that works by a pallet pattern, names a robot the model does not declare, or has robot moves and names none. On screen: "{block}: no robot named {robot}" | [BATCH](../blocks/batch.md), [MOTION](../blocks/motion.md), [SEPARATE](../blocks/separate.md), [`robots`](../model-file/robots.md) |
| <span id="e_route_no_sequences"></span>`E_ROUTE_NO_SEQUENCES` | error | A ROUTE block exists but the model declares no stations or sequences. On screen: "Block {block}: a route needs {missing}, but none are declared" | [ROUTE](../blocks/route.md) |
| <span id="e_run_block"></span>`E_RUN_BLOCK` | error | A block stopped the run: a value it computed or drew could not be used (an attribute no block assigned, a negative scale), or no branch took an entity. Raised as ModelRunError with the block's name; fix that block's parameters. On screen: "A block failed during the run" | -- |
| <span id="e_separate_carrier"></span>`E_SEPARATE_CARRIER` | error | A SEPARATE's carrier is not "dispose" or "keep". On screen: "Block {block}: carrier {carrier} is not dispose or keep" | [SEPARATE](../blocks/separate.md) |
| <span id="e_separate_carrier_link"></span>`E_SEPARATE_CARRIER_LINK` | error | A SEPARATE that keeps the carrier does not have exactly two outgoing links (0 = the members, 1 = the carrier). On screen: "Block {block}: keeping the carrier needs 2 links out, has {n}" | [SEPARATE](../blocks/separate.md) |
| <span id="e_separate_member_time"></span>`E_SEPARATE_MEMBER_TIME` | error | A SEPARATE has a member_time but disposes of the carrier. On screen: "Block {block}: member time only applies when the carrier is kept" | [SEPARATE](../blocks/separate.md) |
| <span id="e_separate_release_order"></span>`E_SEPARATE_RELEASE_ORDER` | error | A SEPARATE's release_order is not "pattern", "fifo" or "lifo". On screen: "Block {block}: release order {order} is not pattern, fifo or lifo" | [RELEASE](../blocks/release.md), [SEPARATE](../blocks/separate.md), [`orders`](../model-file/orders.md) |
| <span id="e_sequence_empty"></span>`E_SEQUENCE_EMPTY` | error | A sequence has no steps. On screen: "Sequence {name} has no steps" | [`sequences`](../model-file/sequences.md) |
| <span id="e_sequence_name"></span>`E_SEQUENCE_NAME` | error | A sequence has an empty or duplicate name. On screen: "A sequence has no name" / "Sequence {name} is defined twice" | [`sequences`](../model-file/sequences.md) |
| <span id="e_sequence_station_unknown"></span>`E_SEQUENCE_STATION_UNKNOWN` | error | A sequence step names a station with no STATION block. On screen: "Block {block}: unknown destination station {destination}" / "Sequence {name}: step {step} has unknown station {station}" | [STATION](../blocks/station.md), [`sequences`](../model-file/sequences.md) |
| <span id="e_sequence_step"></span>`E_SEQUENCE_STEP` | error | A sequence step is malformed: no station, or a non-scalar "values" entry. On screen: "Sequence {name}: step {step} is not an object" / "Sequence {name}: step {step} names no station" / "Sequence {name}: step {step} values must be an object" / "Sequence {name}, step {step}: {key} is not a valid attribute name" / "Sequence {name}, step {step}: {key} must be a number, text or yes/no" | [`sequences`](../model-file/sequences.md) |
| <span id="e_sequence_unknown"></span>`E_SEQUENCE_UNKNOWN` | error | A CREATE or ASSIGN names a sequence the model does not declare. On screen: "Block {block}: unknown sequence {sequence}" / "Order {order}: unknown sequence {sequence}" | [ASSIGN](../blocks/assign.md), [CREATE](../blocks/create.md), [`sequences`](../model-file/sequences.md) |
| <span id="e_terminal_not_dispose"></span>`E_TERMINAL_NOT_DISPOSE` | error | A reachable block with no outgoing link is not a DISPOSE. On screen: "Block {block}: the flow ends here but it is not a DISPOSE" | [DISPOSE](../blocks/dispose.md) |
| <span id="e_too_many_outputs"></span>`E_TOO_MANY_OUTPUTS` | error | A single-output block has more than one outgoing link. On screen: "{block} has {n} links out; at most {allowed}" | -- |
| <span id="e_unknown_block_type"></span>`E_UNKNOWN_BLOCK_TYPE` | error | The block's `type` is not in BLOCK_REGISTRY. On screen: "Block {block}: unknown block type {btype}" | -- |
| <span id="e_unknown_distribution"></span>`E_UNKNOWN_DISTRIBUTION` | error | A distribution name that is in no registry entry. On screen: "{where}: no distribution named {name}" | -- |
| <span id="e_warmup_past_end"></span>`E_WARMUP_PAST_END` | error | The warm-up is as long as the run or longer, so nothing after it is observed and every result is zero. On screen: "Warm-up {warmup} reaches the run length {limit}" | -- |
| <span id="w_available_is_capacity"></span>`W_AVAILABLE_IS_CAPACITY` | warning | A balk_if or DECIDE condition reads AVAILABLE(), the capacity in force, not the free units (IDLE). On screen: "Block {block}: AVAILABLE() gives the capacity, not the free units" | [DECIDE](../blocks/decide.md) |
| <span id="w_create_no_orders"></span>`W_CREATE_NO_ORDERS` | warning | A CREATE block is in "Orders" mode but no order names it. On screen: "Block {block}: Orders mode but no order names it" | [CREATE](../blocks/create.md) |
| <span id="w_decide_no_else"></span>`W_DECIDE_NO_ELSE` | warning | A Condition-mode DECIDE has no ELSE link, so an entity no condition takes stops the run. On screen: "Block {block}: no ELSE link, so unmatched entities stop the run" | [DECIDE](../blocks/decide.md) |
| <span id="w_empirical_continuous"></span>`W_EMPIRICAL_CONTINUOUS` | warning | EmpiricalContinuous given equal-length values/probs samples discrete points. On screen: "Block {block}: values are read as discrete points" | -- |
| <span id="w_long_name"></span>`W_LONG_NAME` | warning | A block name is over 20 characters; the canvas wraps it. On screen: "Block {block}: name is {n} characters, too long to draw" | -- |
| <span id="w_opening_off_wall"></span>`W_OPENING_OFF_WALL` | warning | A building opening cuts no wall: it names a room, wall line or edge that does not exist, is wider than its wall edge, or its two points lie on no wall line. On screen: "Opening {i} {reason}, so it cuts no wall" | -- |
| <span id="w_orders_not_consumed"></span>`W_ORDERS_NOT_CONSUMED` | warning | Orders are declared but no CREATE block is in "Orders" mode. On screen: "{n} orders declared but no CREATE block releases them" | [CREATE](../blocks/create.md) |
| <span id="w_order_due_before_release"></span>`W_ORDER_DUE_BEFORE_RELEASE` | warning | An order's due date is before its release time. On screen: "Order {order}: due {due} is before release {release}" | [RELEASE](../blocks/release.md), [`orders`](../model-file/orders.md) |
| <span id="w_order_field"></span>`W_ORDER_FIELD` | warning | An order attribute (or a bound/CSV order column) is named like a field of the entity itself and is skipped. On screen: "Order {order}: {key} is a built-in field and is ignored" / "Binding {binding}: columns {columns} are skipped" | [`orders`](../model-file/orders.md) |
| <span id="w_plan_station_unknown"></span>`W_PLAN_STATION_UNKNOWN` | warning | An order's `plan` names a station with no STATION block . On screen: "Order {order}: plan names unknown station {station}" | [STATION](../blocks/station.md) |
| <span id="w_preempt_no_priority"></span>`W_PREEMPT_NO_PRIORITY` | warning | preempt is set but every block seizing that resource uses the same priority, so nothing can ever preempt anything. On screen: "Block {block}: preempt does nothing, all seizers of {resource} tie" | -- |
| <span id="w_queue_leave_link_unused"></span>`W_QUEUE_LEAVE_LINK_UNUSED` | warning | A SEIZE/PROCESS has a second outgoing link but neither balk_if nor renege_after, so nothing ever takes it. On screen: "Block {block}: the second link out is never used" | [PROCESS](../blocks/process.md), [SEIZE](../blocks/seize.md) |
| <span id="w_queue_row_crossing"></span>`W_QUEUE_ROW_CROSSING` | warning | A placed asset's drawn queue row (up to its queue capacity, at most ten places 0.8 m apart) runs through another placed asset on the floor plan; turn the row (queue_row) so the picture reads right. On screen: "The queue row of {name} runs through {other}" | -- |
| <span id="w_replay_row"></span>`W_REPLAY_ROW` | warning | A schedule or due-date row cannot be read (a blank order or resource, a time that is not a time, an end before its start) and was left out; its order is marked. | -- |
| <span id="w_reversed_held_at_end"></span>`W_REVERSED_HELD_AT_END` | warning | At the end of a run that stopped at its time limit, a reversible CONVEYOR runs backward with a part held at its start; nothing boards it meanwhile, so if no signal turns it again this is a deadlock (a cheap notice, not a proof). On screen: "A belt runs backward with a part held at its start" | [CONVEYOR](../blocks/conveyor.md) |
| <span id="w_route_forbidden"></span>`W_ROUTE_FORBIDDEN` | warning | In the run, a part left a divert group or a CONVEYOR_TRANSFER by an exit its routing rule cannot choose for it at that moment (an attribute changed since the rule chose, or names no exit). Warned once per block; an error that stops the run under simulation.strict_checks. On screen: "A part left by an exit its rule would not choose now" | [CONVEYOR_TRANSFER](../blocks/conveyor-transfer.md), [ROUTE](../blocks/route.md) |
| <span id="w_route_held_at_end"></span>`W_ROUTE_HELD_AT_END` | warning | At the end of a run that stopped at its time limit, a routing rule still holds a load because every exit was at its limit; if nothing under way there arrives, this is a deadlock (a cheap notice, not a proof). On screen: "A routing rule still holds a load at the run's end" | [ROUTE](../blocks/route.md) |
| <span id="w_route_rule"></span>`W_ROUTE_RULE` | warning | A routing rule (a divert's, a transfer's or a Rule-mode DECIDE's) has a condition per exit and no ELSE, so a part no condition takes stops the run, or it has a limit or is least_loaded while an exit leads to no CONVEYOR and names no target piece, so nothing is counted under way there; or a CONVEYOR_TRANSFER exit reaches its conveyor through a block that branches (no handshake at its eye), hands to a conveyor with no eye and a stop nearer its entry than the longest item, or counts a limit or least_loaded only until the handshake; or a merge joins a belt between the first and last divert of a rule group, so its parts are never routed; or a zoned belt has diverts, so its zone timing is not modelled behind the last divert or eye. On screen: "Block {block}: its routing rule has no ELSE exit" / "Block {block}: rule exit {exit} counts no parts under way" / "Transfer {block}: exit {port} branches at {fan} before its conveyor" / "Transfer {block}: belt {belt} needs an eye before its first stop" / "Transfer {block}: exit {port} stops counting at the handshake on {belt}" / "Belt {block}: merge {index} joins inside rule group {group}" / "Belt {block}: no zone timing behind its last divert or eye" | [CONVEYOR](../blocks/conveyor.md), [CONVEYOR_TRANSFER](../blocks/conveyor-transfer.md), [DECIDE](../blocks/decide.md), [ROUTE](../blocks/route.md) |
| <span id="w_samples_nothing"></span>`W_SAMPLES_NOTHING` | warning | A run at log level series samples nothing: the model's timeseries_points is 0, or the run has no length to divide. On screen: "Level series, but the model samples nothing" | -- |
| <span id="w_station_unused"></span>`W_STATION_UNUSED` | warning | A STATION block is named by no sequence step. On screen: "Block {block}: no sequence uses this station" | [STATION](../blocks/station.md) |
| <span id="w_unbounded_duration"></span>`W_UNBOUNDED_DURATION` | warning | A duration uses a distribution that can sample below 0; samples truncate to 0. On screen: "Block {block}: {dist} can give negative times, cut to 0" | -- |
| <span id="w_unknown_key"></span>`W_UNKNOWN_KEY` | warning | A key the model file format does not have, at any level the schema closes; the hint names the nearest valid key. The document keeps it through load and save. Also a key the run does not read where it stands: a link's capacity without a delay. On screen: "Unknown top-level key {key}, not used by this build" / "Unknown key {key}, not used by this build" / "Link {where}: capacity is read only with a delay" | -- |
| <span id="w_unreachable"></span>`W_UNREACHABLE` | warning | A block cannot be reached from any CREATE. On screen: "{block} is unreachable" | [CREATE](../blocks/create.md) |
| <span id="w_wall_crossing"></span>`W_WALL_CROSSING` | warning | A path-network segment crosses a building wall where it has no opening; walls never change routing, so movers would walk through it. On screen: "Network segment {a} to {b} crosses a wall with no door" | -- |
| <span id="w_written_by_newer"></span>`W_WRITTEN_BY_NEWER` | warning | The file was last saved by a newer nagasim than this one; sections this build does not know are kept, but it may read others differently. On screen: "Saved by newer nagasim {writer}" | -- |

## How to fix

Each code with the usual remedy:

- `E_BATCH_CARRIER_CAPACITY`: Make the BATCH's `carrier_capacity` expression return 0 or more for every carrier. Check the carrier attributes it reads, or wrap it in `max(0, ...)`.
- `E_BATCH_MEMBER_TIME`: Set the BATCH's `carrier_type` to the carrier's entity type, or clear `member_time` and `carrier_capacity`. Both apply only to a carrier BATCH.
- `E_BUFFER_CAPACITY`: Set the BUFFER's `capacity`, or the SEIZE/PROCESS `queue_capacity`, to a count of 0 or more. For an unlimited queue, leave `queue_capacity` at 0 and draw no BUFFER.
- `E_BUILDING`: Correct the part of the `building` section the path names. The `building` section page gives the shape of each room, wall line, opening, marking, label and fixture, and the hint names the field or colour that is wrong.
- `E_CREATE_NO_OUTPUT`: Link the CREATE block to the first block of the flow. Entities need an outgoing link to go anywhere.
- `E_DECIDE_BRANCHES`: Give the DECIDE one outgoing link for every probability or condition, in the same order, or remove the extra entries. One more link than entries serves as the ELSE branch.
- `E_DECIDE_FALLBACK`: Set the DECIDE's `fallback` to `first`, `random` or `shortest`. The fallback picks the branch when no policy answers.
- `E_DECIDE_POLICY_NAME`: Give the Policy-mode DECIDE a non-empty `policy`, the name of its decision point, for example `routing`. Several DECIDE blocks may share one name.
- `E_DECIDE_PROBS`: Make the probabilities sum to at most 1. If they sum to less than 1, add one more outgoing link as the ELSE branch for the remainder, or raise the probabilities to sum to 1.
- `E_DECIDE_QUEUE_EXPRS`: Give `queue_exprs` exactly one expression per outgoing link, in branch order, or choose a `fallback` other than `shortest`.
- `E_DETERMINISTIC_NO_MEAN`: Use a distribution and `dist_params` with a finite mean (for example an `Exponential` with a positive rate), or turn off `simulation.deterministic`. Deterministic mode replaces each draw by its mean.
- `E_DISPOSE_HAS_OUTPUT`: Remove the DISPOSE block's outgoing link. A DISPOSE ends the flow; to continue after it, link from the block before it instead.
- `E_DISTRIBUTION_MISSING`: Add a `distribution` to the duration spec the message names: the link's `delay`, or a failure's `uptime` or `downtime`. For a link, you can drop the `delay` instead.
- `E_DIST_PARAM_UNKNOWN`: Rename or remove the distribution parameter. Each distribution takes only the parameters on its reference page, and any other key would be ignored.
- `E_DUPLICATE_BLOCK`: Rename one of the two blocks. Block names are the model's identifiers, and links, results and overrides refer to a block by its name.
- `E_DUPLICATE_STATION`: Rename one of the two STATION blocks or change its `station` value. A station name identifies exactly one block.
- `E_FIELD_RANGE`: Bring the value inside the bounds that the section's field table states. The message names the field, and the table gives its minimum and maximum.
- `E_HOLD_SPACE_TARGET`: Point `hold_until_space` at a real space: link the block, or name in `space_of`, a BUFFER with `capacity` above 0 or a SEIZE/PROCESS with `queue_capacity` above 0. Otherwise clear `hold_until_space`.
- `E_LINK_UNKNOWN_BLOCK`: Add the block that the link names, or point the link at an existing block. A renamed or deleted block is the usual cause.
- `E_MATCH_ATTRIBUTE`: Set the MATCH's `match_on` to an attribute name, such as `order` or `entity.order`, not starting with `_`. Leave it empty to match by entity type alone.
- `E_NO_CREATE`: Add a CREATE block and link it into the flow. Without a source, nothing ever arrives in the model.
- `E_NO_DISPOSE`: Add a DISPOSE block at the end of the flow. Entities that never leave stay in the work in progress, and the throughput results stay empty.
- `E_ON_PREEMPT`: Set `on_preempt` to `resume` (the interrupted job keeps its remaining service) or `restart` (it starts over).
- `E_ORDER_ENTITY_TYPE`: Declare the entity type under `entities`, or correct the order's `entity_type` to a declared one. The hint lists the declared types.
- `E_ORDER_FIELD`: Correct the order's field. Quantities are whole numbers of 0 or more, release and due are numbers or ISO timestamps, and extra attributes must be single values.
- `E_ORDER_ID`: Give every order a unique, non-empty `id`, such as `WO-1001`. Rename one of two orders that share an id.
- `E_ORDER_SOURCE`: Set the order's `source` to a CREATE block whose `arrival_mode` is `Orders`, or drop `source` to use the first such block.
- `E_PARAM_MISSING`: Add the required parameter to the block. The block's reference page marks the required ones, for example `resource_name` on a RELEASE.
- `E_PARAM_TYPE`: Give the parameter a value of the declared type, for example a number rather than the text "5", or a list rather than a single value. The hint names the types the block takes.
- `E_PARAM_UNKNOWN`: Remove the parameter, or rename it to one the block type declares. The block's reference page lists every parameter; a typo or a parameter of a neighbouring block is the usual cause.
- `E_PLUGIN_NOT_LOADED`: Load the plugin that provides the type, for example by adding its folder to NAGASIM_PLUGIN_PATH, or remove the type from info.requires_plugins if the model no longer uses it.
- `E_PREEMPT_BLOCKING`: Drop `preempt` on this block, or give the downstream BUFFER enough `capacity` that the station holding the resource never blocks after service.
- `E_PREEMPT_SCOPE`: Use `preempt` only on a PROCESS with action `Seize Delay Release`, and make every other block seizing that resource one too. Otherwise drop `preempt`.
- `E_QUEUE_NO_LEAVE_LINK`: Add a second outgoing link, from the block that balks or reneges to where entities that leave without service go, often a DISPOSE. Or clear `balk_if` and `renege_after`.
- `E_RECORD_KIND`: Set the RECORD's `kind` to one of the kinds the hint lists, such as `count`. Check the spelling and case.
- `E_RECORD_KIND_CONFLICT`: Give every RECORD writing the same `stat_name` the same `kind`, or record the second kind into a different `stat_name`.
- `E_RECORD_STAT_NAME`: Set the RECORD's `stat_name` to the name of the statistic it collects. The name keys the results.
- `E_ROUTE_NO_SEQUENCES`: Declare at least one sequence under `sequences` and a STATION block for each step, or remove the ROUTE block.
- `E_SEPARATE_CARRIER`: Set the SEPARATE's `carrier` to `dispose` (the batch ends here) or `keep` (the carrier leaves by a second link).
- `E_SEPARATE_CARRIER_LINK`: Give the SEPARATE exactly two outgoing links: link 0 for the members, link 1 for the empty carrier. Or set `carrier` to `dispose`.
- `E_SEPARATE_MEMBER_TIME`: Set the SEPARATE's `carrier` to `keep`, or clear `member_time`. The per-member time applies only when the carrier lives on.
- `E_SEPARATE_RELEASE_ORDER`: Set the SEPARATE's `release_order` to `fifo` (load order) or `lifo` (last loaded first out).
- `E_SEQUENCE_EMPTY`: List at least one step in the sequence's `steps`, such as `{"station": "Mill"}` naming a STATION block, or delete the sequence.
- `E_SEQUENCE_NAME`: Give every entry under `sequences` a unique, non-empty `name`. Rename one of two sequences that share a name.
- `E_SEQUENCE_STATION_UNKNOWN`: Add a STATION block for the named station, or correct the step's `station` (or the block's `destination`) to a declared one. The hint lists the declared stations.
- `E_SEQUENCE_STEP`: Write each step as an object with a non-empty `station`. Its optional `values` must be an object of attribute names mapping to a number, string or boolean.
- `E_SEQUENCE_UNKNOWN`: Declare the sequence under `sequences`, or correct the `sequence` on the CREATE, ASSIGN or order to a declared name.
- `E_TERMINAL_NOT_DISPOSE`: End the flow in a DISPOSE: link this block to one, or add one after it. A block with no outgoing link would strand its entities.
- `E_TOO_MANY_OUTPUTS`: Remove the extra links, or insert a DECIDE to branch. Only DECIDE and LOGIC may branch. A block that can balk, renege or keep a carrier is allowed a second link.
- `E_UNKNOWN_BLOCK_TYPE`: Correct the block's `type` to one of the block types in the block reference. Types are upper case, such as `PROCESS`; a misspelling or a type from another tool is the usual cause.
- `E_UNKNOWN_DISTRIBUTION`: Use a distribution from the distribution reference, spelled as it is there (for example `Exponential`). The hint lists the valid names.
- `W_AVAILABLE_IS_CAPACITY`: Use `IDLE("name")` for the free units, or `NR("name")` for the busy ones, in the `balk_if` or DECIDE condition. Keep `AVAILABLE()` only if you mean the capacity in force.
- `W_CREATE_NO_ORDERS`: Add orders under `orders` whose `source` names this CREATE, or switch its `arrival_mode` back to `Interarrival`.
- `W_EMPIRICAL_CONTINUOUS`: Switch to `EmpiricalDiscrete`, or give `values` one more entry than `probs` so they act as bin edges for true continuous sampling.
- `W_LONG_NAME`: Shorten the block or SUBMODEL instance name to 20 characters or fewer, and move the detail to its description. If the wrapped name is fine, the warning can stay.
- `W_OPENING_OFF_WALL`: Point the opening at a wall that exists: `{"room": NAME, "edge": K}` or `{"line": INDEX, "edge": K}`, where edge K runs from point K to K + 1. An opening wider than its wall edge needs a narrower `width` or a longer wall.
- `W_ORDERS_NOT_CONSUMED`: Set a CREATE block's `arrival_mode` to `Orders` so it releases the orders, or remove the `orders` section.
- `W_ORDER_DUE_BEFORE_RELEASE`: Set the order's `due` to an absolute time after its `release`, in the model's base unit. A due date is not a lead time.
- `W_ORDER_FIELD`: Rename the order attribute, or map the bound column to another name with the binding's `map`, so it is a valid identifier and not a field of the entity itself.
- `W_PLAN_STATION_UNKNOWN`: Correct the station name in the order's `plan`, or add a STATION block with that name. The hint lists the declared stations.
- `W_PREEMPT_NO_PRIORITY`: Give the preempting block a lower `priority` number than the blocks whose jobs it should interrupt, or drop `preempt`.
- `W_QUEUE_LEAVE_LINK_UNUSED`: Set `balk_if` or `renege_after` on the block, or remove its second outgoing link.
- `W_SAMPLES_NOTHING`: Give the run a length or set `simulation.timeseries_points` above 0 so the series level has something to record, or run at level `kpi`, which records the same summary frames.
- `W_STATION_UNUSED`: Add the station to a sequence's `steps`, or delete the STATION block if no route visits it.
- `W_UNBOUNDED_DURATION`: Use a distribution that cannot go below 0, such as `Lognormal`, `Gamma` or `BoundedNormal` in place of `Normal`. Negative samples are cut to 0, which raises the mean.
- `W_UNKNOWN_KEY`: Correct the key's spelling to the nearest valid name the hint gives, or remove it. The file keeps a key it does not know through load and save, but no run reads it, so the setting has no effect.
- `W_UNREACHABLE`: Link the block into the flow from a CREATE, or delete it. A block that no entity can reach never runs and adds nothing to the results.
- `W_WALL_CROSSING`: Add an opening where the path goes through the wall, or move the path segment. Walls never change routing, so without an opening the movers in a run walk through the wall.

[All problem codes](index.md)
