Skip to content

Problem codes: Scenarios, checks and the editor

Scenarios, assertions, path checks, dashboards, annotations, cranes and piles drawn in playback, and the file version. The list is generated from the codes' own table; the meaning is the table's sentence for the code.

Code Severity Meaning About
E_ANNOTATION_ID error An annotation has an empty id. On screen: "An annotation has no id" annotations
E_ANNOTATION_KIND error An annotation's kind is neither text nor frame. On screen: "Annotation {id} has an unknown kind" annotations
E_ANNOTATION_SHAPE error An annotation lacks the geometry its kind needs. On screen: "Text annotation {id} needs a position" / "Frame annotation {id} needs a rectangle" annotations
E_ASSERTION_CONFIDENCE error An assertion's "confidence" is not a number between 0 and 1. On screen: "Assertion {name}: confidence must be between 0 and 1" assertions
E_ASSERTION_KPI error An assertion's "kpi" field is empty. On screen: "Assertion {name}: no KPI named" assertions
E_ASSERTION_NAME error An assertion has an empty or duplicate name. On screen: "An assertion has no name" assertions
E_ASSERTION_OP error An assertion's "op" field is unknown or missing. On screen: "Assertion {name}: unknown comparison {op}" assertions
E_ASSERTION_REPLICATIONS error An assertion's "replications" is not an integer >= 1. On screen: "Assertion {name}: replications must be a whole number, 1 or more" assertions
E_BACKGROUND error The background image section is malformed. On screen: "Background setting is not an object" / "Background image has no file path" / "Background position must be two numbers" / "Background scale must be above 0" / "Background opacity must be between 0 and 1" / "Background locked must be true or false" / "Background units per metre must be above 0 or empty" background
E_CRANE error The cranes section is malformed (a crane without a name or a valid runway, fewer than two served blocks, an unknown field, axis or colour). On screen: "A crane setting is not valid" cranes
E_DASHBOARD_CONTROL error A dashboard control is unnamed or duplicated, of an unknown kind, or names an unknown target; a slider's min >= max, step <= 0 or a capacity range outside 0..the declared capacity; a decision's policy has no Policy-mode DECIDE or a different option count. On screen: "Dashboard control {name} is not valid" DECIDE, dashboard
E_DASHBOARD_DEFINITION error The dashboard section is malformed or over a ceiling: an unknown key, too many entries, a range that is not finite, ordered and within 10 000 steps, text that is too long or not printable, an item its page does not take or whose "ref" names nothing. On screen: "The dashboard settings are not valid" dashboard
E_DASHBOARD_EXPR error A dashboard widget's expression is empty, does not compile, names an unknown variable or resource, draws a random number, or is a constant that is not a number. On screen: "{block}: {text} is not a valid expression" / "{block}: {text} fails on every draw" / "{block}: {text} uses self outside an agent type" / "{who}: no resource named {name}" / "{who}: {func} draws random numbers, not allowed here" / "{who}: a constant that is not a number" / "Widget {name}: its expression is empty" / "Widget {name}, series {label}: its expression is empty" dashboard
E_DASHBOARD_GAUGE error A gauge widget's "max" is missing or <= "min", or its "thresholds" are unsorted or outside [min, max]. On screen: "Widget {name}: gauge needs a numeric maximum" / "Widget {name}: maximum must be above minimum" / "Widget {name}: thresholds must be numbers" / "Widget {name}: thresholds must be ascending" / "Widget {name}: thresholds must lie between minimum and maximum" dashboard
E_DASHBOARD_INPUT error A dashboard input's path addresses nothing an override may change in this model, or its kind does not fit the value found there. dashboard
E_DASHBOARD_KIND error A dashboard widget's kind is not kpi/gauge/line/bar. On screen: "Widget {name}: unknown kind {kind}" dashboard
E_DASHBOARD_NAME error A dashboard widget has an empty or duplicate name. On screen: "A dashboard widget has no name" / "Dashboard widget {name} is defined twice" dashboard
E_DUPLICATE_ANNOTATION error Two annotations share an id. On screen: "Annotation id {id} is used twice" DUPLICATE, annotations
E_DUPLICATE_ASSERTION error Two assertions share a name. On screen: "Assertion {name} is defined twice" DUPLICATE, assertions
E_DUPLICATE_PATH_CHECK error Two path checks share a name. On screen: "Path check {name} is defined twice" DUPLICATE, path_checks
E_DUPLICATE_SCENARIO error Two scenarios share a name. On screen: "Scenario {name} is defined twice" DUPLICATE, scenarios
E_PATH_CHECK_BLOCK error A path check names no block, a block the model does not have, or the same block as both "first" and "then". On screen: "Path check {name}: {key} must name a block" / "Path check {name}: no block named {target}" / "Path check {name}: first and then are the same block" path_checks
E_PATH_CHECK_COUNT error An "at_most" path check's "count" is not a whole number >= 0. On screen: "Path check {name}: count must be a whole number, 0 or more" path_checks
E_PATH_CHECK_NAME error A path check has an empty name. On screen: "A path check has no name" path_checks
E_PATH_CHECK_RULE error A path check is not an object with one of the rules order, never, at_most or always, its "e_type" is not a name, or it carries a key its rule does not take. On screen: "Path checks must be a list" / "A path check must be an object" / "Path check {name}: unknown rule {rule}" / "Path check {name}: entity type must be a name" / "Path check {name}: a {rule} rule has an extra setting" path_checks
E_SCENARIO_GOAL error A scenario's goal is not text, or is longer than 500 characters. On screen: "Scenario {name}: goal must be text under 500 characters" scenarios
E_SCENARIO_NAME error A scenario has an empty name. On screen: "A scenario has no name" scenarios
E_SCENARIO_OVERRIDE error A scenario override is missing its path or its value, or (when the scenario is applied) its path addresses nothing in the model. On screen: "Scenario {name}: an override has no path" / "Scenario {name}: override {path} has no value" / "A scenario override path is not valid" scenarios
E_SCHEMA_VERSION error The file's schema_version is newer than this build supports. --
E_STOCKPILE error The stockpiles section is malformed (an area without a block or piles, a pile rect out of order, keys without a source, an unknown field). On screen: "A stockpile setting is not valid" stockpiles
W_BACKGROUND_MISSING warning The background image's path does not exist on disk (F3: this used to be a plain string ModelDocument.problems() appended itself, not a schema check; same text, now a coded Problem). On screen: "Background image not found: {path}" background
W_SCENARIO_PATH warning A scenario override's path addresses nothing in the model (the hint names the nearest name): the base model runs, that scenario cannot. On screen: "Scenario {scenario}: an override path is not valid" scenarios

How to fix

Each code with the usual remedy:

  • E_ANNOTATION_ID: Give the annotation a non-empty id in the annotations section. Every annotation needs its own unique id.
  • E_ANNOTATION_KIND: Set the annotation's kind to text or frame. No other kind exists, and an annotation without a kind gets this error too.
  • E_ANNOTATION_SHAPE: Give a text annotation a position of [x, y], and a frame annotation a rect of [x, y, width, height].
  • E_ASSERTION_CONFIDENCE: Set the assertion's confidence to a number strictly between 0 and 1, such as 0.95, or remove it to use that default.
  • E_ASSERTION_KPI: Fill in the assertion's kpi with a KPI key the run produces, such as system/Throughput (per time unit).
  • E_ASSERTION_NAME: Give the assertion a non-empty name in the assertions section. Names must be unique within the section.
  • E_ASSERTION_OP: Set the assertion's op to one of <, <=, >, >= or ==. The field is required and takes no other operator.
  • E_ASSERTION_REPLICATIONS: Set the assertion's replications to a whole number of at least 1, or remove it to use the default of 5.
  • E_BACKGROUND: Fix the background section: an object with a non-empty path, position as [x, y], scale above 0, opacity from 0 to 1 and locked true or false. Use null for no background.
  • E_DASHBOARD_CONTROL: Give the control in dashboard.controls a unique name, a kind of slider or decision, a known target and min below max. A decision's policy needs a Policy-mode DECIDE with one option per outgoing link.
  • E_DASHBOARD_DEFINITION: Fix the dashboard section at the path the message names. Drop unknown keys, keep lists and text within their ceilings, and make every page item's ref name an existing input, result, widget or control.
  • E_DASHBOARD_EXPR: Rewrite the widget's expr so it compiles and names only declared variables and resources. It may not draw a random number, and a constant must be a number.
  • E_DASHBOARD_GAUGE: Give the gauge widget a numeric max greater than min, and list its thresholds as ascending numbers within min and max.
  • E_DASHBOARD_INPUT: Point the input's path at a value an override can change in this model, and set its kind to match that value: number, switch for true/false, or choice.
  • E_DASHBOARD_KIND: Set the widget's kind to one of kpi, gauge, line or bar in dashboard.widgets.
  • E_DASHBOARD_NAME: Give the dashboard widget a non-empty name that no other widget in dashboard.widgets uses.
  • E_DUPLICATE_ANNOTATION: Rename one of the two annotations in the annotations section so every id is unique.
  • E_DUPLICATE_ASSERTION: Rename one of the two assertions in the assertions section so every name is unique.
  • E_DUPLICATE_PATH_CHECK: Rename one of the two path checks in the path_checks section so every name is unique.
  • E_DUPLICATE_SCENARIO: Rename one of the two scenarios in the scenarios section so every name is unique.
  • E_PATH_CHECK_BLOCK: Set the path check's block, or an order rule's first and then, to names of blocks in the model. first and then must name different blocks.
  • E_PATH_CHECK_COUNT: Set the at_most path check's count to a whole number of 0 or more: the most visits an entity may make to the block.
  • E_PATH_CHECK_NAME: Give the path check a non-empty name in the path_checks section. Names must be unique within the section.
  • E_PATH_CHECK_RULE: Make path_checks a list of objects whose rule is order, never, at_most or always. Keep only the keys that rule takes, and give e_type as an entity type name.
  • E_SCENARIO_GOAL: Write the scenario's goal as text of at most 500 characters, such as one sentence naming the question it answers.
  • E_SCENARIO_NAME: Give the scenario a non-empty name in the scenarios section. Names must be unique within the section.
  • E_SCENARIO_OVERRIDE: Give every override a path and a value. A path has the form resources.<name>.capacity, as listed on the section's page.
  • E_SCHEMA_VERSION: Open the file with a newer version of the tool. It was written by a version that is newer than this one, so this build cannot be sure to read it right.
  • W_BACKGROUND_MISSING: Put the image at the background.path the model names, or correct the path. A relative path is read from the model file's folder.

All problem codes