Problem codes: Data, live feeds and the twin¶
Data sources and bindings, network access limits, live feeds, warm starts, saved states, plant mappings, the twin cycle and the MES. The list is generated from the codes' own table; the meaning is the table's sentence for the code.
| Code | Severity | Meaning | About |
|---|---|---|---|
E_CANDIDATES |
error | A candidates file is not one of format 1, is over its bound, holds a key or an action it may not, or names what the model does not declare. On screen: "The candidate actions are not valid" | -- |
E_CANDIDATE_VERB |
error | A candidate's verb is not one of the vocabulary's verbs. On screen: "A candidate action is not one the twin knows" | -- |
E_CONN_FORMAT |
error | The caller's connections file is malformed, or asks for something refused. On screen: "The connections file is not valid" | -- |
E_DATA_BINDING_NAME |
error | A binding has an empty or duplicate name. On screen: "A data binding has no name" / "Data binding {name} is defined twice" | data_bindings |
E_DATA_BINDING_SOURCE |
error | A binding names a data source the model does not declare. On screen: "Binding {name}: unknown data source {source}" | data_bindings |
E_DATA_BINDING_TARGET |
error | A binding's target is not an override path this model has. On screen: "Binding {name}: target is empty" / "Binding {name}: column is empty" | data_bindings |
E_DATA_BINDING_TRANSFORM |
error | A binding's transform is not a known one. On screen: "Binding {name}: unknown transform {transform}" | data_bindings |
E_DATA_CONNECTION |
error | A live source names no connection, or one its caller did not define for it. On screen: "Data source {name}: a {kind} source needs a connection" | -- |
E_DATA_CREDENTIALS |
error | A source URL embeds a password; read it from ${NAGASIM_DATA_<NAME>} instead. On screen: "Data source {name}: the location holds a password" | -- |
E_DATA_EMPTY |
error | A binding's column held no usable value after filtering. On screen: "{source}: no usable value" | -- |
E_DATA_ENV |
error | A ${NAGASIM_DATA_<NAME>} reference names an environment variable that is not set. On screen: "{source}: a setting it needs is not set" | -- |
E_DATA_ENV_NAME |
error | A ${NAME} reference names a variable a model file may not read: only names starting with NAGASIM_DATA_ are expanded. On screen: "{source}: names a setting it may not read" | -- |
E_DATA_FILTER |
error | A binding's filter is not a simple {column op value} mapping. On screen: "Binding {name}: filter must be an object" / "Binding {name}: bad filter key {key}" | -- |
E_DATA_NETWORK_REFUSED |
error | A network source was refused: no human granted network access. On screen: "{source}: network access not granted" | network |
E_DATA_PATH_OUTSIDE_ROOT |
error | A source path escapes the root the caller confined it to. On screen: "{source}: its file is outside the allowed folder" | -- |
E_DATA_PLAINTEXT_CREDENTIAL |
error | A connection would send its credential over a channel that is not encrypted, to another machine. On screen: "{source}: would send a password unencrypted" | -- |
E_DATA_PROXY |
error | A fetch through the caller's proxy was refused: plain http, or the proxy did not open the tunnel. On screen: "{source}: the proxy refused the connection" | -- |
E_DATA_QUERY |
error | A source's query is not one SELECT statement. On screen: "{source}: its query is not a single read" | -- |
E_DATA_READ |
error | A data source could not be read (missing file, bad query, unreachable URL). On screen: "{source} cannot be read" | -- |
E_DATA_SOURCE_KIND |
error | A data source's kind is not one the engine reads. On screen: "Data source {name}: unknown kind {kind}" | data_sources |
E_DATA_SOURCE_LOCATION |
error | A data source has no location, or none its kind can use. On screen: "Data source {name}: location is empty" / "Data source {name}: a {kind} source needs a query" / "Data source {name}: location must not name a host" | data_sources |
E_DATA_SOURCE_NAME |
error | A data source has an empty or duplicate name. On screen: "A data source has no name" / "Data source {name} is defined twice" | data_sources |
E_DATA_SOURCE_OPTION |
error | A live source carries an option its reader does not know, or a value the option cannot take. On screen: "Data source {name}: unknown option {key}" | data_sources |
E_DATA_TLS |
error | A connection's TLS handshake failed: the certificate is not valid for the host. On screen: "{source}: its certificate is not valid" | -- |
E_DATA_TOO_LARGE |
error | A fetched response is over the size cap. On screen: "{source}: the answer is too large" | -- |
E_DATA_TYPE |
error | A binding's resulting value does not match the type the target holds. On screen: "{source}: a value has the wrong type" | -- |
E_DATA_URL_HOST |
error | A source URL has no usable hostname, or one outside the allowed hosts. On screen: "{source}: its host is not allowed" | -- |
E_DATA_URL_PARAMETER |
error | A database URL carries a query parameter a model file may not set. On screen: "{source}: its address sets a forbidden option" | -- |
E_DATA_URL_PRIVATE |
error | A source URL resolves to a loopback, link-local or private address. On screen: "{source}: a private address is not allowed" | -- |
E_DATA_URL_REDIRECT |
error | A fetch redirected too many times, downgraded, or landed somewhere refused. On screen: "{source}: redirected somewhere refused" | -- |
E_DATA_URL_SCHEME |
error | A source URL is not http(s), or is a file masquerading as a database URL. On screen: "{source}: its address type is not allowed" | -- |
E_FLEET_POWER_STATE |
error | A fleet's "power" names a state that is not busy/idle/blocked/down/off_shift. On screen: "Fleet {name}: unknown power state {state}" | fleets |
E_INITIAL_AGE |
error | An initial-state entry's age is negative or not a number. On screen: "Block {block}: age must be 0 or more" | initial_state |
E_INITIAL_ARRIVALS |
error | initial_state.arrivals does not give a CREATE block a count and a next time. On screen: "Arrivals of {name}: values are not valid" / "Arrivals of {name}: schedule times are not valid" / "Arrivals of {name} tie; their ranks must differ" | CREATE, initial_state |
E_INITIAL_BATCH |
error | A formed batch in initial_state does not fit the model: an entry that meets a SEPARATE has no members, or its members are not records of one batch the model can form. On screen: "Block {block}: the entry is a formed batch and needs members" / "Block {name}: the batch members are not valid" | BATCH, SEPARATE, initial_state |
E_INITIAL_BELT |
error | A part on a belt in initial_state does not fit the model: not one entity at an accumulating CONVEYOR, a stage it does not have, a time on the wrong side of the clock, or more than one part at the belt's end. On screen: "Block {name}: a part on a belt is not valid" / "Belt {block}: a part at its end stop is not carried" / "Belt {block}: the parts at its end do not fit" / "Belt {block}: its times do not fit" / "Belt {block}: a part on it is not valid" / "Belt {block}: states do not carry typed belt parts yet" / "Belt {block}: {n} parts at one point" / "Belt {block}: a part waiting at a stop is not carried" / "Belt {block}: {n} parts in section {section}, room for {room}" | CONVEYOR, initial_state |
E_INITIAL_BLOCK |
error | An initial-state entry is not an object, names a block the model does not have, or misstates its place, its holder or its attributes. On screen: "Initial state must be an object" / "Initial state: entities must be a list of objects" / "Block {name}: what it carries into the run is not valid" / "Initial state: unknown block {name}" / "Block {block}: entity type or attributes not valid" / "Block {block}: the entity's station must be named" / "Block {block}: transfer amount is not valid" / "Block {block}: place must be true or false" / "Block {block}: the block holding the entity is not valid" | initial_state |
E_INITIAL_BLOCK_TYPE |
error | An initial-state entry names a block type that cannot hold entities. On screen: "Block {block} cannot hold entities at the start" | initial_state |
E_INITIAL_BUSY |
error | A resource is reported busy with a number of units the in-service entities do not hold. On screen: "Resource {name}: {busy} busy, but entities in service hold {held}" | initial_state |
E_INITIAL_CARRIER |
error | An initial_state entry of the carrier type waits at a carrier BATCH: its cut-off cannot be put back. On screen: "Block {block}: a waiting {carrier} cannot be restored" | BATCH, initial_state |
E_INITIAL_CLOCK |
error | initial_state.clock is not a number >= 0 and before the end of the run. On screen: "Initial state: clock is outside the run" | initial_state |
E_INITIAL_COUNT |
error | An initial-state entry's count is negative or not an integer. On screen: "Block {block}: count must be a whole number, 0 or more" | initial_state |
E_INITIAL_CYCLE |
error | A MOTION job mid-cycle in initial_state does not fit the model: a cycle not at a MOTION job in service, a segment it does not have, a time that is no duration of it, or an end beyond the segment in progress. On screen: "Block {block}: only a job in service has a cycle" / "Block {name}: the motion cycle is not valid" | MOTION, initial_state |
E_INITIAL_FAILURE |
error | initial_state.resources.<name>.failures names a failure the resource does not have, or gives it no next or down_until time. On screen: "Resource {name}: failure {failure} is not valid" | failures, initial_state |
E_INITIAL_FLEET |
error | initial_state.fleets or an entity's trip does not fit the model: a fleet, a vehicle record, a node, a charger or a stage it does not have. On screen: "The fleet state does not fit the model" | fleets, initial_state |
E_INITIAL_IN_SERVICE |
error | in_service exceeds the entry's count or the resource's capacity. On screen: "Block {block}: number in service must be 0 or more" / "Block {block}: a {btype} block has no service" / "Block {block}: {in_service} in service, only {count} entities" / "Block {block}: needs {needed} units, capacity is {capacity}" / "Resource {name}: {units} units in service, capacity {capacity}" | initial_state |
E_INITIAL_KEY |
error | initial_state has a key this engine does not know (a newer engine may have written it): refused rather than ignored. On screen: "Initial state: unknown key {key}" | initial_state |
E_INITIAL_ORDERS |
error | initial_state.orders names an order the model does not declare, or gives it counters or a completion time that cannot be. On screen: "Initial state: the order book is not valid" / "Order {name}: its counters are not valid" | initial_state |
E_INITIAL_QUEUE_CAPACITY |
error | More entities wait at a block, or sit in a BUFFER, than it has places. On screen: "Block {block}: {queued} entities wait, queue holds {room}" / "Belt {block}: {n} parts, only {cells} cells" | BUFFER, initial_state |
E_INITIAL_REMAINING |
error | remaining is not a list of non-negative numbers, or is longer than in_service; or ends, arrives or since is not an absolute time the entry can carry. On screen: "Block {block}: remaining times must be numbers, 0 or more" / "Block {block}: {n} remaining times for {in_service} in service" / "Block {block}: service end times are not valid" / "Block {block}: deadline must be at or after the clock" / "Block {block}: since must be at or before the clock" / "Block {block}: arrival time is not valid" / "Block {block}: the held-since time is not valid" / "Block {block}: the held-since time is not valid" | initial_state |
E_INITIAL_RESOURCE |
error | initial_state.resources, or an entity's holds, names a resource the model does not declare, or a hold it cannot be. On screen: "Initial state: unknown resource {name}" / "The used list names something not in the model" / "Block {block}: the entry must hold {released} to give it back" / "Block {name}: the resources it holds are not valid" / "Block {where}: {name} is held but never released later" / "Block {block}: batch member {index} must hold {resource}" | initial_state, resources |
E_INITIAL_SCHEDULE_OFFSET |
error | initial_state.schedule_offset is not a number >= 0. On screen: "Initial state: schedule offset must be 0 or more" | initial_state, schedules |
E_INITIAL_SET |
error | initial_state names a resource set, a cursor or a member the model does not have. On screen: "Resource set {name}: its cursor is not valid" / "Block {block}: {member} is not a member of the set" | initial_state, resource_sets |
E_INITIAL_VARIABLE |
error | initial_state.variables names a variable the model does not declare. On screen: "Initial state: unknown variable {name}" | initial_state, variables |
E_LEVEL_INITIAL_CYCLE |
error | Level initial expressions read each other in a cycle. On screen: "Level start values depend on each other: {cycle}" | initial_state, levels |
E_MESMAP_FEED |
error | An unknown feed, or a feed the model cannot take (no Orders-mode CREATE, no such process-time table, an override path that does not apply). On screen: "The MES mapping's feeds are not valid" / "Unknown MES feed {name}" / "The plan feed needs a model that takes orders" / "Table {name} is not in the model" / "An MES value could not be applied" | CREATE |
E_MESMAP_FORMAT |
error | A *.mesmap.json is not an object, or needs a newer format version. On screen: "The MES mapping file is not valid" / "The MES mapping is from a newer version" | -- |
E_MESMAP_PRODUCT |
error | A product entry is malformed or duplicated, or names an entity type or sequence the model does not declare. On screen: "A product has no MES name" / "Product {name} is mapped twice" / "Product {name}: item type {type} not in the model" / "Product {name}: route {route} not in the model" | -- |
E_MESMAP_TIME |
error | A mapping has no time epoch, or an unknown model time unit. On screen: "The MES mapping does not say when its time starts" | -- |
E_MESMAP_UNMAPPED |
error | The MES reports a work centre, product or operation the mapping covers with nothing. On screen: "MES work centre {name} is not mapped" / "MES product {name} is not mapped" / "Step {step} of {name} has no work centre" / "Work waiting at {name} has no station" | -- |
E_MESMAP_WORK_CENTRE |
error | A work centre entry is malformed or duplicated, or names a station, resource or failure the model does not declare. On screen: "A work centre has no MES name" / "Work centre {name} is mapped twice" / "Work centre {name}: no station {station} in the model" / "Work centre {name}: its process time points nowhere usable" / "Work centre {name}: its process time is not in the model" / "Work centre {name}: {target} is not in the model" | -- |
E_MES_ADAPTER |
error | An adapter spec is not one this build knows (sqlite:<path> / csv:<folder>). On screen: "The MES connection type is not known" | -- |
E_MES_READ |
error | An MES source could not be read: missing file, missing table, bad columns. On screen: "The MES data cannot be read" | -- |
E_MES_TIME |
error | A timestamp is not ISO 8601. On screen: "A time from the MES cannot be read" | -- |
E_OUTBOX_SINK |
error | The outbox given at start is no sink this version builds, or its path is not a place a record may be written. On screen: "The outbox cannot be written there" | -- |
E_PLANTMAP_DOUBLE |
error | Two signals of a plant mapping tell one thing (a resource's units, a block's content): the engine does not choose between two reports. On screen: "Two plant signals report the same thing" | -- |
E_PLANTMAP_FORMAT |
error | The file is not a plant mapping of format 1, or a part of it is malformed. On screen: "The plant mapping file cannot be read" / "A plant mapping setting is not valid" / "Plant signal {index} is not valid" | -- |
E_PLANTMAP_NAME |
error | A plant mapping names a block, resource or level the model does not have. On screen: "Plant signal {index}: the model has no {what} {name}" / "Plant signal {index}: fleet {name} has no vehicle {unit}" / "Plant signal {index}: block {name} has no steps" | -- |
E_PLANTMAP_SIZE |
error | A plant mapping is over a bound (1 MiB, 2000 signals, 10 000 entries a table, 1024 bytes a key). On screen: "The plant mapping file is too large" / "The plant mapping has too many signals" / "Plant signal {index} is too large" | -- |
E_PLANT_LOG |
error | A recorded plant log cannot be read, or is over its bound (256 MiB, 1 000 000 lines). On screen: "The plant log cannot be read" | -- |
E_RECOMMEND_KPI |
error | The KPI the candidates are compared on is not in the forecast's table. On screen: "No KPI {kpi} in the forecast; nothing compared" | -- |
E_REFIT |
error | A refit file is not one of format 1, is over its bound, holds a key it may not, or names a factor that addresses no number of the model. | -- |
E_RESOURCE_POWER_STATE |
error | A resource's "power" names a state that is not busy/idle/blocked/down/off_shift. On screen: "Resource {name}: unknown power state {state}" | resources |
E_SDIMPORT_MDL |
error | A Vensim .mdl file was refused before parsing: not decodable text, over the 20 MB cap, or a malformed equation section. | -- |
E_SDIMPORT_UNSUPPORTED |
error | An XMILE or Vensim construct sdimport/mdlimport does not translate (a module, a macro, a conveyor/queue stock, a XMILE dimension mapping, a Vensim '<->' equivalence, an unknown function or name, a GET XLS/DIRECT/DATA external reference, a variable name with a space); the owning variable is left out of the imported layout. | -- |
E_SDIMPORT_XML |
error | An XMILE file was refused before parsing: a DOCTYPE/ENTITY declaration, over the 20 MB cap, or not well-formed XML. | -- |
E_SERIES_TIMES |
error | A time series' sample times do not strictly increase. On screen: "Time series {name}: timestamps must increase" / "Time series {name}: times must increase" / "Time series {name}: step must be positive" | timeseries_inputs |
E_STATE_FORMAT |
error | The file is not a state document of format 1, or holds a value that is not plain data. On screen: "The state file cannot be read" | -- |
E_STATE_HASH |
error | A state document does not match its own hash: it was edited after it was written. On screen: "The state file was changed after it was written" | -- |
E_STATE_MODEL |
error | A state document was taken for another model, or another version of this one. On screen: "The state file is for another model" | -- |
E_STATE_SIZE |
error | A state document is over the size bound (16 MiB, 100 000 entities). On screen: "The state file is too large" | -- |
E_STATE_STALE |
error | An observed state is older than the age the caller allows, or has no time stamp. On screen: "The plant state is too old to use" | -- |
E_STATE_UNSUPPORTED |
error | The run holds something a state cannot carry (the message names the kind); no partial state is written. On screen: "Cannot start: an item waits at {name}, amount unknown" / "This model cannot start from plant data yet" | -- |
E_TIMESERIES_COUNTS |
error | simulation.timeseries_counts is not a list of at most 1000 different block names, or names a block the model does not have. On screen: "Counted blocks must be a list of different names" / "Counted block {name} is not in the model" | -- |
E_TWIN_FORECAST |
error | A twin's forecast failed; the last good one is kept and the next is tried at its own time. On screen: "The forecast failed; the last one is kept" / "The forecast could not be read" | -- |
E_TWIN_OUTPUT |
error | A twin's result file could not be written; the next cycle writes again. On screen: "{name} could not be written" | -- |
E_TWIN_REFIT |
error | An adopted refit does not apply to the model started from the plant: no forecast is made with it. On screen: "The adopted refit does not fit the model; no forecast" | -- |
E_TWIN_RESULT |
error | No twin result of format 1 can be read from that directory. | -- |
E_TWIN_STATE |
error | This model cannot be started from the plant's state yet (the message names the kind): the twin goes on monitoring and makes no forecast. On screen: "No start could be made from the plant's state" / "This model cannot start from plant data yet" / "Cannot start from plant data: vehicles not mapped" | -- |
E_VARIABLE_INITIAL |
error | A variable's initial value is not a number, string or boolean. On screen: "Variable {name}: start value must be a number, text or true/false" | initial_state, variables |
E_VIEWER_MODEL |
error | A model cannot be shared as a browser viewer as it is: it holds agent Python, a LOGIC block, something a plugin registered, a data source that was not frozen into the copy, or it is too large. | LOGIC |
W_DATA_ALLOW_NETWORK_IGNORED |
warning | A data source carries "allow_network"; consent never comes from the model file and the key is stripped on load. On screen: "Data source {name}: {key} in the model file is ignored" | network |
W_INITIAL_STATE_WARMUP |
warning | Both an initial state and a warm-up are set; warm-up discards the very history the initial state supplies. On screen: "Warm-up discards the initial state" | initial_state |
W_LAW |
warning | A law check of the last run did not pass (nagasim.laws): a warning, never an error; it clears when the model changes. On screen: "Run check not met: {name}" | -- |
W_LIVE_DROPPED |
warning | A live source sent something over a bound or of a type that is not data; it was dropped and counted. On screen: "{source}: some data dropped" | -- |
W_LIVE_GAP |
warning | A live source's stream broke: an unknown number of events is missing. On screen: "{source}: stream broke; some events missing" | -- |
W_LIVE_LIMIT |
warning | A live source's server did not accept the message limit, so the size of what it sends is not bounded. On screen: "{source}: its server does not limit message size" | -- |
W_LIVE_LOST |
warning | A live source's buffer overflowed: events were dropped before they were read. On screen: "{source}: {lost} events dropped unread" | -- |
W_LIVE_SKEW |
warning | A live source's clock and this machine's differ by more than 30 seconds. On screen: "{source}: its clock is {skew} s off" | -- |
W_MESMAP_UNUSED |
warning | A mapped work centre or product the MES does not report. On screen: "{name} is mapped but not in the MES" | -- |
W_MES_NAIVE_TIME |
warning | An MES timestamp carries no UTC offset and was read as UTC. On screen: "Times without a time zone read as UTC" | -- |
W_MES_TABLE_MISSING |
warning | A REST MES source answered 404 for a table, which was read as empty. On screen: "MES table {table} not found; read as empty" | tables |
W_MES_THIN_DATA |
warning | Too few observations in the window to refit a parameter; the model's own value stands. On screen: "Too few {what} in {days}; using the model's own {own}" / "Too few {what} in {days}; using the model's {kept}" / "No pattern in {n} {what}; using the model's own {own}" | -- |
W_OUTBOX |
warning | The outbox could not take a record, stopped at a ceiling, or took one again after a refusal. Said once a change; records wait until they expire. On screen: "The outbox takes records again" / "The outbox refused a record; trying again" / "The outbox file is full; nothing more written" / "Today's outbox limit reached; the rest waits for tomorrow" / "The replies cannot be read; trying again" | -- |
W_PLANT_CONTRADICTION |
warning | The plant said two things that do not agree; the stated rule was applied. On screen: "Level {level} and buffer {buffer} disagree; the parts count" / "Jobs reported for {n} unreleased or unknown orders" / "{n} released orders show fewer jobs than ordered" | -- |
W_PLANT_DROPPED |
warning | Plant observations were dropped: a value the mapping cannot read, a time out of range, a stale event, or something over a bound. Counted by reason. On screen: "{n} lines of the plant log skipped" | -- |
W_PLANT_GAP |
warning | The plant's log has a hole (events lost, or the stream broke): what was missed is not in the observed timeline. On screen: "Gaps in the plant log: {holes}; events missing: {lost}" | -- |
W_PLANT_SERVICE_INFERRED |
warning | A plant reports units of a resource busy and names no job: the longest-waiting entities of the one block that seizes it are taken as in service. On screen: "{busy} of {name} busy, {named} jobs named; the rest guessed" | -- |
W_PLANT_SYNTHETIC |
warning | The observed timeline holds events for items or units the plant did not name (a queue length, a unit count). On screen: "Events added for items the plant did not name" | -- |
W_PLANT_TIME |
warning | Plant observations had no source stamp, one ahead of its receipt, or came late; each was given a time by the stated rule. On screen: "Some plant event times were corrected" | -- |
W_SDIMPORT_APPROX |
warning | sdimport/mdlimport translated a construct with a documented approximation (a bare DELAY, a non-euler/rk4 method, a non-day/hour/minute/second time unit, a clock not starting at 0, a graphical function/lookup with no input equation). | DELAY |
W_STATE_NOT_COVERED |
warning | An observed state says nothing about an element kind the model has; it starts as the model declares it. On screen: "{name} is down; it starts up" / "{name} starts its cycle afresh" / "Nothing read about {name}; the model's start is used" / "{n} orders have no release time; released now" / "Fleet {name} cannot be placed" / "A part at the end of belt {name} is not placed" | -- |
W_TWIN_ALERT |
warning | The alert sums found in a twin's directory were of another model, kept under other --alert-k / --alert-h limits, or could not be read: they start again from now (said once). On screen: "Alerts started again: the saved sums were for another model" / "Alerts started again: the saved sums used other limits" / "Alerts started again: the saved sums are unreadable" | -- |
W_TWIN_CLOCK |
warning | This machine's clock jumped against its own count of time between two cycles. On screen: "This computer's clock jumped {by} s" | -- |
W_TWIN_CUT |
warning | A twin's result was over a bound: the part named was left out (or, for a source with more events waiting than one cycle reads, read at the next cycle). On screen: "{source} is ahead; the rest is read next step" / "Too many KPIs; some are not in the result" / "{n} more problems not shown" / "Result too large; {key} left out" | -- |
W_TWIN_FORECAST_BUSY |
warning | A forecast was due while the previous one was still running: none was started. On screen: "Previous forecast still running; none started" | -- |
W_TWIN_MODEL_CHANGED |
warning | The model file changed on disk while a twin runs on it: the twin keeps the model it loaded until it is started again. On screen: "The model file changed; the twin keeps the loaded one" | -- |
W_TWIN_RECOMMEND |
warning | A twin's recommendations could not be kept or continued as asked: the message says what (a ledger of another model, a state too large to keep, an action that no longer applies). Said once. On screen: "The record of taken actions started again" / "A recommendation could not be kept; none delivered" / "An action taken on {target} no longer applies" / "The candidate actions could not be compared" / "The recommendations could not be updated" / "The recommendations could not be made" | -- |
W_TWIN_REFIT |
warning | A twin's refit could not be stepped or proposed, or an adopted refit kept in its directory is not applied (unsound, not the one the outbox ledger holds as taken, or outside the --refit file): the message says which. On screen: "The adopted refit is not applied" / "A kept refit is not applied: no refit file given" / "The refit could not be updated this cycle" / "A refit proposal was unreadable; not proposed" / "A refit taken by reply is not applied" | -- |
W_TWIN_SCORE |
warning | The rolling score found in a twin's directory was of another model or horizon, or could not be read: it starts again from now (said once). On screen: "Score started again: the saved one was for another model" / "Score started again: the saved one was for another horizon" / "Score started again: the saved one is unreadable" | -- |
W_TWIN_SOURCE |
warning | A source of the twin is down, has not answered yet, could not be read, has been silent for longer than --max-age, or says nothing the mapping reads: the view keeps its last picture and no forecast is started. On screen: "{source} is not answering" / "{source} silent for {age} s" / "Plant data matches no signal" / "The plant could not be read; trying again" | -- |
W_VIEWER_EMPTY |
warning | The model's dashboard definition lists no input or no result, so a viewer of it has nothing to change or nothing to show. | -- |
W_VIEWER_LONG_RUN |
warning | A run at the most replications a viewer allows is estimated to take over five minutes in a browser. | -- |
How to fix¶
Each code with the usual remedy:
E_CANDIDATES: Write the candidates file as{"format": 1, "kind": ...}with onlykpi,better,expiresandcandidates, each action exactlyverb,targetandvalue. Point every target at a block, resource or order the model declares; the message names the action refused.E_CANDIDATE_VERB: Set the action'sverbto a built verb:set_capacity,resequence,expedite,hold,release,rerouteorsetpoint. The hint lists the verbs this version builds.E_CONN_FORMAT: Fix the connections file passed as--connections: write it as{"format": 1, "connections": {...}}, and correct the entry the message names. Paths in it resolve beside the file and must exist.E_DATA_BINDING_NAME: Give every entry indata_bindingsa non-emptyname, and rename one of two bindings that share a name.E_DATA_BINDING_SOURCE: Set the binding'ssourceto thenameof a data source declared underdata_sources, or declare that source. The hint lists the declared ones.E_DATA_BINDING_TARGET: Point the binding'stargetat a path the model has, for exampleresources.Nurse.capacity. Declare the resource first if it does not exist.E_DATA_BINDING_TRANSFORM: Use a transform from the hint in the binding'stransform, with the argument its form needs, such asquantile:0.9,table:KEYorseries:TIME. Fororders, writemapas an object of column names.E_DATA_CONNECTION: Set the live source'sconnectionto the name of a connection of its kind in the caller's connections file (--connections). The person who runs the model defines it there, never in the model.E_DATA_CREDENTIALS: Remove the password from the source'slocation. Write the whole URL as${NAGASIM_DATA_DB_URL}and set that environment variable before the run.E_DATA_EMPTY: Check the binding'sfilterandcolumn: after filtering, the column must hold usable values (numbers, two distinct timestamps for a rate, an id column and a row per table key).E_DATA_ENV: Set the environment variable the message names before the run, or edit the source'slocationso it no longer refers to it.E_DATA_ENV_NAME: Rename the${...}reference in the source to a variable whose name starts withNAGASIM_DATA_, such as${NAGASIM_DATA_DB_URL}, and set that variable before the run.E_DATA_FILTER: Write the binding'sfilteras an object of"column": valueor"column op": valueentries, with an operator from the hint and a column the source has.E_DATA_NETWORK_REFUSED: Pass--allow-networkto thenagacommand that runs the model if a network source is intended. Otherwise point the source at a local path or a mapped drive.E_DATA_PATH_OUTSIDE_ROOT: Move the data file under the root the run is confined to, and set the source'slocationto a plain path under it; UNC, device and alternate-stream paths are refused.E_DATA_PLAINTEXT_CREDENTIAL: Use the encrypted scheme for the connection in the connections file (https, mqtts, an OPC UA security policy), or drop its credential and read anonymously.E_DATA_PROXY: Use thehttpsURL for the source, or list the host inNO_PROXYif it is reachable directly. If the tunnel failed, checkHTTPS_PROXY.E_DATA_QUERY: Write the source'squeryas oneSELECT(orWITH) statement, with no comment before it and no second statement after a semicolon.E_DATA_READ: Check that the file exists at the path relative to the model file, and that the sheet, column or query is right. A network source must be reachable and permitted by the caller.E_DATA_SOURCE_KIND: Set the data source'skindto one the hint lists. For a live reading, name a source of a live kind declared in the model'sdata_sources.E_DATA_SOURCE_LOCATION: Give the data source alocationits kind can use: a path or URL for a file source, aqueryforsqliteandsql. For a live kind, give only the path, topic, node ids or registers inside its connection.E_DATA_SOURCE_NAME: Give every entry indata_sourcesa non-emptyname, and rename one of two sources that share a name.E_DATA_SOURCE_OPTION: Remove the unknown key from the source'soptions, or give the option a value it can take. The hint lists the options of that kind and the values allowed.E_DATA_TLS: Give the server a certificate valid for its host name and dates, or name the private CA asca_filein the connections file. A certificate file it names must be a PEM or DER certificate.E_DATA_TOO_LARGE: Point the source at a smaller extract, so the response stays under the byte and row caps, with flatter rows for arestsource.E_DATA_TYPE: Pick atransformwhose result matches the type the target field holds, or point the binding'stargetelsewhere. Text from a live source is never written into the model; bind a number or a boolean.E_DATA_URL_HOST: Write the source'slocationashttp(s)://host/pathwith a hostname that resolves. If--allow-hostrestricts the run, add the host to it.E_DATA_URL_PARAMETER: Remove the query parameters the hint does not allow from the database URL. Settings outside that list belong to the database account or a service file, not to the model.E_DATA_URL_PRIVATE: Point the source at a public host. For an intranet host, pass--allow-private-network, or add"private": trueto the connection in the connections file; loopback-only or metadata addresses stay refused for URLs.E_DATA_URL_REDIRECT: Point the source'slocation, or the connection's address, at the final URL, so the fetch is not redirected, and keep it onhttps.E_DATA_URL_SCHEME: Use anhttporhttpsURL in the source'slocation. A local file belongs in acsv,xlsxorsqlitesource, never in a database URL.E_FLEET_POWER_STATE: Key the fleet'spoweronly bybusy,idle,blocked,downoroff_shift, and remove or rename any other state.E_INITIAL_AGE: Set the entry'sageininitial_state.entitiesto a number of at least 0, in base time units.E_INITIAL_ARRIVALS: Give each CREATE ininitial_state.arrivalsacountof at least 0 and, for an Interarrival CREATE, anextat or after the clock; tied arrivals need differentrankvalues.E_INITIAL_BATCH: Give an entry that meets aSEPARATEitsmembers, from 1 to the group size of the BATCH or MATCH that forms it. Each member has its owne_type,age,attributesandholds.E_INITIAL_BELT: Correct the belt part ininitial_state.entities: one entity at an accumulating CONVEYOR, with astageit has anduntilorenteredon the right side of the clock. Take the state at another time if a part blocks an end stop.E_INITIAL_BLOCK: Make eachinitial_state.entitiesentry an object whoseblocknames a block of the model, with validattributes,place,held_byandtransfer. Inside a submodel, name the blockinstance/inner.E_INITIAL_BLOCK_TYPE: Move the entry ininitial_state.entitiesto a block that can hold entities, such as a PROCESS or BUFFER, instead of the block type the message names.E_INITIAL_BUSY: Makeinitial_state.resourcesbusyequal to the units the in-service entities hold on that resource, or correctin_servicein the entities.E_INITIAL_CARRIER: Take the state with the carrier before the carrier BATCH (at its door SEIZE), not while it waits at the BATCH.E_INITIAL_CLOCK: Setinitial_state.clockto a number of at least 0 that lies before the end of the run, in the model's base time unit.E_INITIAL_COUNT: Set the entry'scountininitial_state.entitiesto a whole number of at least 0.E_INITIAL_CYCLE: Give acycleonly to one in-service entity at a MOTION block, with astageit has. Setuntilat or after the clock and within that segment, and give the time of each segment.E_INITIAL_FAILURE: Name only failures the resource declares ininitial_state.resources.NAME.failures, and give each anextor adown_untiltime.E_INITIAL_FLEET: Correctinitial_state.fleetsor the entity's trip so each fleet, vehicle, node, charger and stage it names exists in the model. The message names the one missing.E_INITIAL_IN_SERVICE: Lowerin_serviceto at most the entry'scountand the resource's capacity, or raise the capacity. Only service blocks takein_service.E_INITIAL_KEY: Remove the unknown key frominitial_state, or run the state with the engine version that wrote it. The hint lists the keys this engine knows.E_INITIAL_ORDERS: Name only orders declared inordersininitial_state.orders, withcreatedandcompletedof at least 0 andcompleted_atbefore the clock. Eachorder_bookentry needsheldtrue or false.E_INITIAL_QUEUE_CAPACITY: Lower the number of entities waiting at the block, or parts on the belt, to what its queue, BUFFER or belt holds, or raise its capacity.E_INITIAL_REMAINING: Giveremainingone number of at least 0 per in-service entity. Setends,deadlineandarrivesat or after the clock, andsinceandheld_sinceat or before it.E_INITIAL_RESOURCE: Name only resources declared inresourcesininitial_state.resources,usedand an entity'sholds. A hold must be released by a later block, and a released resource must be held.E_INITIAL_SCHEDULE_OFFSET: Setinitial_state.schedule_offsetto a number of at least 0, how far into its cycle the calendar is at time 0.E_INITIAL_SET: Name only declared resource sets ininitial_state.resource_sets, with acursorfrom -1 to the last member's index, and givemembera resource of the set the block seizes.E_INITIAL_VARIABLE: Declare the variable invariables, or remove it frominitial_state.variables. The hint lists the declared variables.E_LEVEL_INITIAL_CYCLE: Give one of the levels in the cycle a number as itsinitial, so the initial expressions no longer read each other in a loop.E_MESMAP_FEED: Use only known keys underfeeds, and give the model what each enabled feed writes: a CREATE witharrival_modeOrdersforplan, a declaredparameters.process_time_table. Check the mapped table, failure andscrap_targetnames exist in the model.E_MESMAP_FORMAT: Make the mapping file a valid JSON object. Setformat_versionto a version this reader supports, or write the mapping in the older format.E_MESMAP_PRODUCT: Give eachproductsentry a uniquemesid, as the MES reports it. Pointentity_typeandsequenceat names the model declares, or setfeeds.sequencestotrueto build routings from the MES.E_MESMAP_TIME: Settime.epochto an ISO 8601 instant for model time 0, such as2026-09-21T06:00:00Z. Settime.unittoseconds,minutes,hoursordays.E_MESMAP_UNMAPPED: Add awork_centresorproductsentry for each MES id named, and map each work centre holding WIP to a STATION block that leads to a PROCESS. Fix a routing step with no work centre in the MES extract.E_MESMAP_WORK_CENTRE: Give eachwork_centresentry a uniquemesid. Pointstation,resourceandfailureat a STATION block, resource and failure the model declares, and makeprocess_time_targeta model path ending in.distribution.E_MES_ADAPTER: Write the adapter spec assqlite:<path>,csv:<folder>orrest:<connection>, with a location after the colon.E_MES_READ: Make the source readable: the database file or CSV folder must exist and follow the MES table schema, with a one-rowsnapshottable holdingtaken_at. For arest:source, check the connection's address and credential.E_MES_TIME: Write the MES timestamp in ISO 8601 with a UTC offset, such as2026-09-21T06:00:00Z.E_OUTBOX_SINK: Give--outboxasfile:<path>in an existing local folder (not a UNC or device path, a link or a hard-linked file), or asmqtt:<connection>naming an mqtt connection with"use": "outbox"in the connections file.E_PLANTMAP_DOUBLE: Keep one signal for each count, state, level or resource's units in the plant mapping'ssignals. Tell a block's content either by aqueuesignal or by identities, not both. The engine does not choose between two reports.E_PLANTMAP_FORMAT: Fix the*.plantmap.jsonat the path given: it needs"format": 1, atime.epochISO 8601 instant, only known keys, and signals whoseas,keyand tables match their kind.naga plant initwrites a valid scaffold.E_PLANTMAP_NAME: Correct the name in the signal (block,blocks,resource,level,nodes,sequencesorunit) to one the model has; the hint lists the model's names. Check that the mapping is used with the model it was written for.E_PLANTMAP_SIZE: Shrink the plant mapping under its bounds. The file stays under 1 MiB, with at most 2000signals, at most 10 000 entries in each table, and eachkeyat most 1024 bytes.E_PLANT_LOG: Pass a readable log under 256 MiB and 1 000 000 lines, one JSON object a line, asnaga watch --recordwrites it. Cut a longer log or record a shorter period.E_RECOMMEND_KPI: Setkpiin the candidates file to a KPI of the forecast's table. Counted throughput istimeseries/block/<name>/out/maxof a block the plant mapping counts.E_REFIT: Fix the--refitfile:"format": 1,"kind": "naga-refit", only its own keys, and a non-emptyfactorslist, each{"path", "low", "high"}withlowunderhighand apaththat addresses a number of the model.E_RESOURCE_POWER_STATE: Use onlybusy,idle,blocked,downandoff_shiftas keys of the resource'spowerobject, each with a number of kW per unit; rename or remove any other key.E_SDIMPORT_MDL: Re-save the Vensim.mdlfile as plain text (UTF-8 or cp1252) under the 20 MB cap, and check that the path given tonaga sdimportexists and is readable.E_SDIMPORT_UNSUPPORTED: Rebuild the variable that the import left out, using the model file's own sections. The message names the unsupported construct, such as a module, a macro or an external data reference.E_SDIMPORT_XML: Re-save the XMILE file as UTF-8, well-formed XML under the 20 MB cap, with no DOCTYPE or ENTITY declaration. Check that the path given tonaga sdimportexists and is readable.E_SERIES_TIMES: Sort the samples of the time series sotimesortimestampsstrictly increase with no duplicates, and givestepa positive value.E_STATE_FORMAT: Pass a state document of format 1 asnaga state takewrites it, with finite numbers and plain JSON values only. Take the state again rather than writing one by hand.E_STATE_HASH: Take the state again withnaga state takeinstead of editing the file; a state document is checked against its own hash, so any hand edit refuses it.E_STATE_MODEL: Take the state again withnaga state takeon the exact model file you run. A change to the model, or an engine upgrade that moves its hash, refuses an older state.E_STATE_SIZE: Take the state at a time with fewer entities in the system, or reduce the model's work in progress; a state holds at most 16 MiB and 100 000 entities.E_STATE_STALE: Write the observed state again so it carries a current time stamp, or allow an older state with a larger--max-age.E_STATE_UNSUPPORTED: Take the state at another time, when the kind the message names is not in progress, or remove that element from the model. The coverage table of the state documentation lists what a state carries.E_TIMESERIES_COUNTS: Setsimulation.timeseries_countsto a list of at most 1000 different block names that exist in the model, for example["Drill", "Pack"].E_TWIN_FORECAST: Run the model from the same state withnaga run --stateto see why it fails, then fix the model; the twin keeps the last good forecast meanwhile.E_TWIN_OUTPUT: Check the twin's--outdirectory: its write rights, its free space, and that no reader keepstwin.jsonor the ledger open. The next cycle writes again.E_TWIN_REFIT: End the adopted refit with anendedreply in the outbox replies, or start the twin with the model the refit was adopted for.E_TWIN_RESULT: Pass the--outdirectory of a twin that has written at least one cycle, a local folder holding itstwin.json; start one withnaga twin run ... --out DIR.E_TWIN_STATE: Remove or replace the element kind the message names, or map avehiclesignal for every vehicle of each fleet.naga state checkand the state coverage table show what can start from the plant.E_VARIABLE_INITIAL: Give the variable'sinitiala scalar value: a number, a string ortrue/false, not a list or an object.E_VIEWER_MODEL: Remove what the message names: freezedata_sourcesanddata_bindingswithnaga viewer --freeze, drop agentpython, LOGIC blocks and plugin types, or keep the model under 5 MB. Otherwise share anaga run --playerrecording.W_DATA_ALLOW_NETWORK_IGNORED: Removeallow_networkfrom the data source in the model file. Network access is granted by whoever runs the model (--allow-network), never by the file.W_INITIAL_STATE_WARMUP: Setsimulation.warmupto 0 for a model that starts from aninitial_state, or remove the initial state if a warm-up from empty is what you want.W_LAW: Compare the result the law names with the model's arrival rates, service times and capacities, and correct the input that disagrees. Saturation can be intended; with no warm-up or many entities left inside, add a warm-up or lengthen the run.W_LIVE_DROPPED: Check what the source sends: keys and values must be plain data under the size bound. Its distinct keys must stay under the connection'skeyslimit, whichlimitsin the connections file can raise.W_LIVE_GAP: Check the connection to the source and the network or server behind it; the latest values are right again, but the history has a hole of unknown size.W_LIVE_LIMIT: Use an encrypted OPC UA connection to a server you trust, lower the server's own message limits, or install an asyncua version the reader supports.W_LIVE_LOST: Read the source more often, or raise the connection'seventslimit underlimitsin the connections file (ceiling 100 000).W_LIVE_SKEW: Synchronise the clocks of the source and this machine, for example with NTP; both stamps travel with every event.W_MESMAP_UNUSED: Correct the entry'smesid to the one the MES reports for that equipment, or remove thework_centresentry.W_MES_NAIVE_TIME: Export the MES timestamps, in theeventstable and thesnapshottable'staken_at, with a UTC offset such asZ. A source that writes local time otherwise shifts the history window by its offset.W_MES_TABLE_MISSING: If the plant has the table, give the REST connection's credential access to it, or serve it at the connection's address. Otherwise no change is needed: the table reads as empty.W_MES_THIN_DATA: Widenparameters.window_daysor lowerparameters.min_samplesin the mapping. If no distribution could be fit, check the units and signs of the durations in the MES extract.W_OUTBOX: Make the outbox reader open, read and close its file and the replies file, and move or empty a file at its ceiling. Failed records are retried until they expire; past the daily ceiling the rest is dropped until the next UTC day.W_PLANT_CONTRADICTION: Check the plant signals the message counts by reason: a job for an unseen entity, a retyped entity, a level out of bounds, a counter going back. Fix the mapping, or setrolloveron a counter that wraps.W_PLANT_DROPPED: Check the mapping's tables (states,blocks,types) and fields against what the plant sends; the message counts each reason. A recorded log needs one JSON object a line, asnaga watch --recordwrites.W_PLANT_GAP: Check the plant connection and raise the source'seventslimit in the connections file if events were lost. What was missed is not shown; the next values put the timeline right.W_PLANT_SERVICE_INFERRED: Map the station'sjobsignal in the plant mapping, so the plant names which entities are in service instead of the longest-waiting ones being assumed.W_PLANT_SYNTHETIC: Map identities withat,seenorjobsignals where the plant has them, so the timeline follows named items and units instead of counts alone.W_PLANT_TIME: Synchronise the plant's clocks with this machine and have each signal carry a source stamp; the message counts stamps that were missing, ahead of their receipt or late.W_SDIMPORT_APPROX: Check the translated element at the path given. To avoid it, set the source model's method to euler or rk4 and its time unit to day, hour, minute or second. Set its start time to 0, and give each graphical function an input.W_STATE_NOT_COVERED: Map a plant signal for the element kind the message names, or take the state again with this version. If the model's declared start is acceptable for it, the warning can stay.W_TWIN_ALERT: Use one--outdirectory per model and keep the same--alert-kand--alert-hwhen the twin is started again. If the change was intended, the sums restart and the warning can stay.W_TWIN_CLOCK: Check this machine's time synchronisation. A single jump, such as a manual clock change, needs no action: cadences are not moved and later stamps use the new time.W_TWIN_CUT: Reduce what one result holds: fewer KPIs or compared series in the forecast, or a smaller view. For a busy source, shorten--everyso each cycle has fewer events to read.W_TWIN_FORECAST_BUSY: Lengthen--forecast-every, or shorten--horizonor lower--replications, so each forecast ends before the next is due.W_TWIN_MODEL_CHANGED: Stop the twin and start it again to use the changed model file; until then it keeps the model it loaded.W_TWIN_RECOMMEND: Act on what the message names. Use one--outdirectory per model so its ledger matches, keep the start state under its size bound, and check that a taken action's target still exists in the model.W_TWIN_REFIT: Give the twin the same--refitfile it ran with, and adopt only refits whose factors that file allows; replyendedto a refit that should not apply.W_TWIN_SCORE: Use one--outdirectory per model and--horizon. A twin started with another model or horizon restarts its score, and the warning can then stay.W_TWIN_SOURCE: Check that each live source is up and connected, that--max-ageis longer than its silent spells, and that the mapping's signal keys match what the plant sends (naga watch).W_VIEWER_EMPTY: List at least one entry underdashboard.inputsand one underdashboard.results. If the author's run could not be recorded, run the model withnaga runto see why.W_VIEWER_LONG_RUN: Lowerdashboard.limits.max_replicationsso a run at the most replications a viewer allows takes under five minutes in a browser.