# 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 |
|---|---|---|---|
| <span id="e_candidates"></span>`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" | -- |
| <span id="e_candidate_verb"></span>`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" | -- |
| <span id="e_conn_format"></span>`E_CONN_FORMAT` | error | The caller's connections file is malformed, or asks for something refused. On screen: "The connections file is not valid" | -- |
| <span id="e_data_binding_name"></span>`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`](../model-file/data_bindings.md) |
| <span id="e_data_binding_source"></span>`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`](../model-file/data_bindings.md) |
| <span id="e_data_binding_target"></span>`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`](../model-file/data_bindings.md) |
| <span id="e_data_binding_transform"></span>`E_DATA_BINDING_TRANSFORM` | error | A binding's transform is not a known one. On screen: "Binding {name}: unknown transform {transform}" | [`data_bindings`](../model-file/data_bindings.md) |
| <span id="e_data_connection"></span>`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" | -- |
| <span id="e_data_credentials"></span>`E_DATA_CREDENTIALS` | error | A source URL embeds a password; read it from ${NAGASIM_DATA_&lt;NAME&gt;} instead. On screen: "Data source {name}: the location holds a password" | -- |
| <span id="e_data_empty"></span>`E_DATA_EMPTY` | error | A binding's column held no usable value after filtering. On screen: "{source}: no usable value" | -- |
| <span id="e_data_env"></span>`E_DATA_ENV` | error | A ${NAGASIM_DATA_&lt;NAME&gt;} reference names an environment variable that is not set. On screen: "{source}: a setting it needs is not set" | -- |
| <span id="e_data_env_name"></span>`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" | -- |
| <span id="e_data_filter"></span>`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}" | -- |
| <span id="e_data_network_refused"></span>`E_DATA_NETWORK_REFUSED` | error | A network source was refused: no human granted network access. On screen: "{source}: network access not granted" | [`network`](../model-file/network.md) |
| <span id="e_data_path_outside_root"></span>`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" | -- |
| <span id="e_data_plaintext_credential"></span>`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" | -- |
| <span id="e_data_proxy"></span>`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" | -- |
| <span id="e_data_query"></span>`E_DATA_QUERY` | error | A source's query is not one SELECT statement. On screen: "{source}: its query is not a single read" | -- |
| <span id="e_data_read"></span>`E_DATA_READ` | error | A data source could not be read (missing file, bad query, unreachable URL). On screen: "{source} cannot be read" | -- |
| <span id="e_data_source_kind"></span>`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`](../model-file/data_sources.md) |
| <span id="e_data_source_location"></span>`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`](../model-file/data_sources.md) |
| <span id="e_data_source_name"></span>`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`](../model-file/data_sources.md) |
| <span id="e_data_source_option"></span>`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`](../model-file/data_sources.md) |
| <span id="e_data_tls"></span>`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" | -- |
| <span id="e_data_too_large"></span>`E_DATA_TOO_LARGE` | error | A fetched response is over the size cap. On screen: "{source}: the answer is too large" | -- |
| <span id="e_data_type"></span>`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" | -- |
| <span id="e_data_url_host"></span>`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" | -- |
| <span id="e_data_url_parameter"></span>`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" | -- |
| <span id="e_data_url_private"></span>`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" | -- |
| <span id="e_data_url_redirect"></span>`E_DATA_URL_REDIRECT` | error | A fetch redirected too many times, downgraded, or landed somewhere refused. On screen: "{source}: redirected somewhere refused" | -- |
| <span id="e_data_url_scheme"></span>`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" | -- |
| <span id="e_fleet_power_state"></span>`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`](../model-file/fleets.md) |
| <span id="e_initial_age"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_arrivals"></span>`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](../blocks/create.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_batch"></span>`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](../blocks/batch.md), [SEPARATE](../blocks/separate.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_belt"></span>`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](../blocks/conveyor.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_block"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_block_type"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_busy"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_carrier"></span>`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](../blocks/batch.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_clock"></span>`E_INITIAL_CLOCK` | error | initial_state.clock is not a number &gt;= 0 and before the end of the run. On screen: "Initial state: clock is outside the run" | [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_count"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_cycle"></span>`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](../blocks/motion.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_failure"></span>`E_INITIAL_FAILURE` | error | initial_state.resources.&lt;name&gt;.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`](../model-file/failures.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_fleet"></span>`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`](../model-file/fleets.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_in_service"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_key"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_orders"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_queue_capacity"></span>`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](../blocks/buffer.md), [`initial_state`](../model-file/initial_state.md) |
| <span id="e_initial_remaining"></span>`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`](../model-file/initial_state.md) |
| <span id="e_initial_resource"></span>`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`](../model-file/initial_state.md), [`resources`](../model-file/resources.md) |
| <span id="e_initial_schedule_offset"></span>`E_INITIAL_SCHEDULE_OFFSET` | error | initial_state.schedule_offset is not a number &gt;= 0. On screen: "Initial state: schedule offset must be 0 or more" | [`initial_state`](../model-file/initial_state.md), [`schedules`](../model-file/schedules.md) |
| <span id="e_initial_set"></span>`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`](../model-file/initial_state.md), [`resource_sets`](../model-file/resource_sets.md) |
| <span id="e_initial_variable"></span>`E_INITIAL_VARIABLE` | error | initial_state.variables names a variable the model does not declare. On screen: "Initial state: unknown variable {name}" | [`initial_state`](../model-file/initial_state.md), [`variables`](../model-file/variables.md) |
| <span id="e_level_initial_cycle"></span>`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`](../model-file/initial_state.md), [`levels`](../model-file/levels.md) |
| <span id="e_mesmap_feed"></span>`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](../blocks/create.md) |
| <span id="e_mesmap_format"></span>`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" | -- |
| <span id="e_mesmap_product"></span>`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" | -- |
| <span id="e_mesmap_time"></span>`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" | -- |
| <span id="e_mesmap_unmapped"></span>`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" | -- |
| <span id="e_mesmap_work_centre"></span>`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" | -- |
| <span id="e_mes_adapter"></span>`E_MES_ADAPTER` | error | An adapter spec is not one this build knows (sqlite:&lt;path&gt; / csv:&lt;folder&gt;). On screen: "The MES connection type is not known" | -- |
| <span id="e_mes_read"></span>`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" | -- |
| <span id="e_mes_time"></span>`E_MES_TIME` | error | A timestamp is not ISO 8601. On screen: "A time from the MES cannot be read" | -- |
| <span id="e_outbox_sink"></span>`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" | -- |
| <span id="e_plantmap_double"></span>`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" | -- |
| <span id="e_plantmap_format"></span>`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" | -- |
| <span id="e_plantmap_name"></span>`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" | -- |
| <span id="e_plantmap_size"></span>`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" | -- |
| <span id="e_plant_log"></span>`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" | -- |
| <span id="e_recommend_kpi"></span>`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" | -- |
| <span id="e_refit"></span>`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. | -- |
| <span id="e_resource_power_state"></span>`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`](../model-file/resources.md) |
| <span id="e_sdimport_mdl"></span>`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. | -- |
| <span id="e_sdimport_unsupported"></span>`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 '&lt;-&gt;' 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. | -- |
| <span id="e_sdimport_xml"></span>`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. | -- |
| <span id="e_series_times"></span>`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`](../model-file/timeseries_inputs.md) |
| <span id="e_state_format"></span>`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" | -- |
| <span id="e_state_hash"></span>`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" | -- |
| <span id="e_state_model"></span>`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" | -- |
| <span id="e_state_size"></span>`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" | -- |
| <span id="e_state_stale"></span>`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" | -- |
| <span id="e_state_unsupported"></span>`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" | -- |
| <span id="e_timeseries_counts"></span>`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" | -- |
| <span id="e_twin_forecast"></span>`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" | -- |
| <span id="e_twin_output"></span>`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" | -- |
| <span id="e_twin_refit"></span>`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" | -- |
| <span id="e_twin_result"></span>`E_TWIN_RESULT` | error | No twin result of format 1 can be read from that directory. | -- |
| <span id="e_twin_state"></span>`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" | -- |
| <span id="e_variable_initial"></span>`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`](../model-file/initial_state.md), [`variables`](../model-file/variables.md) |
| <span id="e_viewer_model"></span>`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](../blocks/logic.md) |
| <span id="w_data_allow_network_ignored"></span>`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`](../model-file/network.md) |
| <span id="w_initial_state_warmup"></span>`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`](../model-file/initial_state.md) |
| <span id="w_law"></span>`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}" | -- |
| <span id="w_live_dropped"></span>`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" | -- |
| <span id="w_live_gap"></span>`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" | -- |
| <span id="w_live_limit"></span>`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" | -- |
| <span id="w_live_lost"></span>`W_LIVE_LOST` | warning | A live source's buffer overflowed: events were dropped before they were read. On screen: "{source}: {lost} events dropped unread" | -- |
| <span id="w_live_skew"></span>`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" | -- |
| <span id="w_mesmap_unused"></span>`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" | -- |
| <span id="w_mes_naive_time"></span>`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" | -- |
| <span id="w_mes_table_missing"></span>`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`](../model-file/tables.md) |
| <span id="w_mes_thin_data"></span>`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}" | -- |
| <span id="w_outbox"></span>`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" | -- |
| <span id="w_plant_contradiction"></span>`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" | -- |
| <span id="w_plant_dropped"></span>`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" | -- |
| <span id="w_plant_gap"></span>`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}" | -- |
| <span id="w_plant_service_inferred"></span>`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" | -- |
| <span id="w_plant_synthetic"></span>`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" | -- |
| <span id="w_plant_time"></span>`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" | -- |
| <span id="w_sdimport_approx"></span>`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](../blocks/delay.md) |
| <span id="w_state_not_covered"></span>`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" | -- |
| <span id="w_twin_alert"></span>`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" | -- |
| <span id="w_twin_clock"></span>`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" | -- |
| <span id="w_twin_cut"></span>`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" | -- |
| <span id="w_twin_forecast_busy"></span>`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" | -- |
| <span id="w_twin_model_changed"></span>`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" | -- |
| <span id="w_twin_recommend"></span>`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" | -- |
| <span id="w_twin_refit"></span>`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" | -- |
| <span id="w_twin_score"></span>`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" | -- |
| <span id="w_twin_source"></span>`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" | -- |
| <span id="w_viewer_empty"></span>`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. | -- |
| <span id="w_viewer_long_run"></span>`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 only `kpi`, `better`, `expires` and `candidates`, each action exactly `verb`, `target` and `value`. Point every target at a block, resource or order the model declares; the message names the action refused.
- `E_CANDIDATE_VERB`: Set the action's `verb` to a built verb: `set_capacity`, `resequence`, `expedite`, `hold`, `release`, `reroute` or `setpoint`. 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 in `data_bindings` a non-empty `name`, and rename one of two bindings that share a name.
- `E_DATA_BINDING_SOURCE`: Set the binding's `source` to the `name` of a data source declared under `data_sources`, or declare that source. The hint lists the declared ones.
- `E_DATA_BINDING_TARGET`: Point the binding's `target` at a path the model has, for example `resources.Nurse.capacity`. Declare the resource first if it does not exist.
- `E_DATA_BINDING_TRANSFORM`: Use a transform from the hint in the binding's `transform`, with the argument its form needs, such as `quantile:0.9`, `table:KEY` or `series:TIME`. For `orders`, write `map` as an object of column names.
- `E_DATA_CONNECTION`: Set the live source's `connection` to 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's `location`. Write the whole URL as `${NAGASIM_DATA_DB_URL}` and set that environment variable before the run.
- `E_DATA_EMPTY`: Check the binding's `filter` and `column`: 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's `location` so it no longer refers to it.
- `E_DATA_ENV_NAME`: Rename the `${...}` reference in the source to a variable whose name starts with `NAGASIM_DATA_`, such as `${NAGASIM_DATA_DB_URL}`, and set that variable before the run.
- `E_DATA_FILTER`: Write the binding's `filter` as an object of `"column": value` or `"column op": value` entries, with an operator from the hint and a column the source has.
- `E_DATA_NETWORK_REFUSED`: Pass `--allow-network` to the `naga` command 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's `location` to 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 the `https` URL for the source, or list the host in `NO_PROXY` if it is reachable directly. If the tunnel failed, check `HTTPS_PROXY`.
- `E_DATA_QUERY`: Write the source's `query` as one `SELECT` (or `WITH`) 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's `kind` to one the hint lists. For a live reading, name a source of a live kind declared in the model's `data_sources`.
- `E_DATA_SOURCE_LOCATION`: Give the data source a `location` its kind can use: a path or URL for a file source, a `query` for `sqlite` and `sql`. For a live kind, give only the path, topic, node ids or registers inside its connection.
- `E_DATA_SOURCE_NAME`: Give every entry in `data_sources` a non-empty `name`, and rename one of two sources that share a name.
- `E_DATA_SOURCE_OPTION`: Remove the unknown key from the source's `options`, 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 as `ca_file` in 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 a `rest` source.
- `E_DATA_TYPE`: Pick a `transform` whose result matches the type the target field holds, or point the binding's `target` elsewhere. Text from a live source is never written into the model; bind a number or a boolean.
- `E_DATA_URL_HOST`: Write the source's `location` as `http(s)://host/path` with a hostname that resolves. If `--allow-host` restricts 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": true` to the connection in the connections file; loopback-only or metadata addresses stay refused for URLs.
- `E_DATA_URL_REDIRECT`: Point the source's `location`, or the connection's address, at the final URL, so the fetch is not redirected, and keep it on `https`.
- `E_DATA_URL_SCHEME`: Use an `http` or `https` URL in the source's `location`. A local file belongs in a `csv`, `xlsx` or `sqlite` source, never in a database URL.
- `E_FLEET_POWER_STATE`: Key the fleet's `power` only by `busy`, `idle`, `blocked`, `down` or `off_shift`, and remove or rename any other state.
- `E_INITIAL_AGE`: Set the entry's `age` in `initial_state.entities` to a number of at least 0, in base time units.
- `E_INITIAL_ARRIVALS`: Give each CREATE in `initial_state.arrivals` a `count` of at least 0 and, for an Interarrival CREATE, a `next` at or after the clock; tied arrivals need different `rank` values.
- `E_INITIAL_BATCH`: Give an entry that meets a `SEPARATE` its `members`, from 1 to the group size of the BATCH or MATCH that forms it. Each member has its own `e_type`, `age`, `attributes` and `holds`.
- `E_INITIAL_BELT`: Correct the belt part in `initial_state.entities`: one entity at an accumulating CONVEYOR, with a `stage` it has and `until` or `entered` on the right side of the clock. Take the state at another time if a part blocks an end stop.
- `E_INITIAL_BLOCK`: Make each `initial_state.entities` entry an object whose `block` names a block of the model, with valid `attributes`, `place`, `held_by` and `transfer`. Inside a submodel, name the block `instance/inner`.
- `E_INITIAL_BLOCK_TYPE`: Move the entry in `initial_state.entities` to a block that can hold entities, such as a PROCESS or BUFFER, instead of the block type the message names.
- `E_INITIAL_BUSY`: Make `initial_state.resources` `busy` equal to the units the in-service entities hold on that resource, or correct `in_service` in 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`: Set `initial_state.clock` to 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's `count` in `initial_state.entities` to a whole number of at least 0.
- `E_INITIAL_CYCLE`: Give a `cycle` only to one in-service entity at a MOTION block, with a `stage` it has. Set `until` at or after the clock and within that segment, and give the time of each segment.
- `E_INITIAL_FAILURE`: Name only failures the resource declares in `initial_state.resources.NAME.failures`, and give each a `next` or a `down_until` time.
- `E_INITIAL_FLEET`: Correct `initial_state.fleets` or 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`: Lower `in_service` to at most the entry's `count` and the resource's capacity, or raise the capacity. Only service blocks take `in_service`.
- `E_INITIAL_KEY`: Remove the unknown key from `initial_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 in `orders` in `initial_state.orders`, with `created` and `completed` of at least 0 and `completed_at` before the clock. Each `order_book` entry needs `held` true 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`: Give `remaining` one number of at least 0 per in-service entity. Set `ends`, `deadline` and `arrives` at or after the clock, and `since` and `held_since` at or before it.
- `E_INITIAL_RESOURCE`: Name only resources declared in `resources` in `initial_state.resources`, `used` and an entity's `holds`. A hold must be released by a later block, and a released resource must be held.
- `E_INITIAL_SCHEDULE_OFFSET`: Set `initial_state.schedule_offset` to 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 in `initial_state.resource_sets`, with a `cursor` from -1 to the last member's index, and give `member` a resource of the set the block seizes.
- `E_INITIAL_VARIABLE`: Declare the variable in `variables`, or remove it from `initial_state.variables`. The hint lists the declared variables.
- `E_LEVEL_INITIAL_CYCLE`: Give one of the levels in the cycle a number as its `initial`, so the initial expressions no longer read each other in a loop.
- `E_MESMAP_FEED`: Use only known keys under `feeds`, and give the model what each enabled feed writes: a CREATE with `arrival_mode` `Orders` for `plan`, a declared `parameters.process_time_table`. Check the mapped table, failure and `scrap_target` names exist in the model.
- `E_MESMAP_FORMAT`: Make the mapping file a valid JSON object. Set `format_version` to a version this reader supports, or write the mapping in the older format.
- `E_MESMAP_PRODUCT`: Give each `products` entry a unique `mes` id, as the MES reports it. Point `entity_type` and `sequence` at names the model declares, or set `feeds.sequences` to `true` to build routings from the MES.
- `E_MESMAP_TIME`: Set `time.epoch` to an ISO 8601 instant for model time 0, such as `2026-09-21T06:00:00Z`. Set `time.unit` to `seconds`, `minutes`, `hours` or `days`.
- `E_MESMAP_UNMAPPED`: Add a `work_centres` or `products` entry 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 each `work_centres` entry a unique `mes` id. Point `station`, `resource` and `failure` at a STATION block, resource and failure the model declares, and make `process_time_target` a model path ending in `.distribution`.
- `E_MES_ADAPTER`: Write the adapter spec as `sqlite:<path>`, `csv:<folder>` or `rest:<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-row `snapshot` table holding `taken_at`. For a `rest:` source, check the connection's address and credential.
- `E_MES_TIME`: Write the MES timestamp in ISO 8601 with a UTC offset, such as `2026-09-21T06:00:00Z`.
- `E_OUTBOX_SINK`: Give `--outbox` as `file:<path>` in an existing local folder (not a UNC or device path, a link or a hard-linked file), or as `mqtt:<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's `signals`. Tell a block's content either by a `queue` signal or by identities, not both. The engine does not choose between two reports.
- `E_PLANTMAP_FORMAT`: Fix the `*.plantmap.json` at the path given: it needs `"format": 1`, a `time.epoch` ISO 8601 instant, only known keys, and signals whose `as`, `key` and tables match their kind. `naga plant init` writes a valid scaffold.
- `E_PLANTMAP_NAME`: Correct the name in the signal (`block`, `blocks`, `resource`, `level`, `nodes`, `sequences` or `unit`) 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 2000 `signals`, at most 10 000 entries in each table, and each `key` at most 1024 bytes.
- `E_PLANT_LOG`: Pass a readable log under 256 MiB and 1 000 000 lines, one JSON object a line, as `naga watch --record` writes it. Cut a longer log or record a shorter period.
- `E_RECOMMEND_KPI`: Set `kpi` in the candidates file to a KPI of the forecast's table. Counted throughput is `timeseries/block/<name>/out/max` of a block the plant mapping counts.
- `E_REFIT`: Fix the `--refit` file: `"format": 1`, `"kind": "naga-refit"`, only its own keys, and a non-empty `factors` list, each `{"path", "low", "high"}` with `low` under `high` and a `path` that addresses a number of the model.
- `E_RESOURCE_POWER_STATE`: Use only `busy`, `idle`, `blocked`, `down` and `off_shift` as keys of the resource's `power` object, each with a number of kW per unit; rename or remove any other key.
- `E_SDIMPORT_MDL`: Re-save the Vensim `.mdl` file as plain text (UTF-8 or cp1252) under the 20 MB cap, and check that the path given to `naga sdimport` exists 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 to `naga sdimport` exists and is readable.
- `E_SERIES_TIMES`: Sort the samples of the time series so `times` or `timestamps` strictly increase with no duplicates, and give `step` a positive value.
- `E_STATE_FORMAT`: Pass a state document of format 1 as `naga state take` writes 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 with `naga state take` instead 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 with `naga state take` on 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`: Set `simulation.timeseries_counts` to 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 with `naga run --state` to see why it fails, then fix the model; the twin keeps the last good forecast meanwhile.
- `E_TWIN_OUTPUT`: Check the twin's `--out` directory: its write rights, its free space, and that no reader keeps `twin.json` or the ledger open. The next cycle writes again.
- `E_TWIN_REFIT`: End the adopted refit with an `ended` reply in the outbox replies, or start the twin with the model the refit was adopted for.
- `E_TWIN_RESULT`: Pass the `--out` directory of a twin that has written at least one cycle, a local folder holding its `twin.json`; start one with `naga twin run ... --out DIR`.
- `E_TWIN_STATE`: Remove or replace the element kind the message names, or map a `vehicle` signal for every vehicle of each fleet. `naga state check` and the state coverage table show what can start from the plant.
- `E_VARIABLE_INITIAL`: Give the variable's `initial` a scalar value: a number, a string or `true`/`false`, not a list or an object.
- `E_VIEWER_MODEL`: Remove what the message names: freeze `data_sources` and `data_bindings` with `naga viewer --freeze`, drop agent `python`, LOGIC blocks and plugin types, or keep the model under 5 MB. Otherwise share a `naga run --player` recording.
- `W_DATA_ALLOW_NETWORK_IGNORED`: Remove `allow_network` from 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`: Set `simulation.warmup` to 0 for a model that starts from an `initial_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's `keys` limit, which `limits` in 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's `events` limit under `limits` in 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's `mes` id to the one the MES reports for that equipment, or remove the `work_centres` entry.
- `W_MES_NAIVE_TIME`: Export the MES timestamps, in the `events` table and the `snapshot` table's `taken_at`, with a UTC offset such as `Z`. 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`: Widen `parameters.window_days` or lower `parameters.min_samples` in 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 set `rollover` on 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, as `naga watch --record` writes.
- `W_PLANT_GAP`: Check the plant connection and raise the source's `events` limit 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's `job` signal 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 with `at`, `seen` or `job` signals 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 `--out` directory per model and keep the same `--alert-k` and `--alert-h` when 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 `--every` so each cycle has fewer events to read.
- `W_TWIN_FORECAST_BUSY`: Lengthen `--forecast-every`, or shorten `--horizon` or 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 `--out` directory 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 `--refit` file it ran with, and adopt only refits whose factors that file allows; reply `ended` to a refit that should not apply.
- `W_TWIN_SCORE`: Use one `--out` directory 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-age` is 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 under `dashboard.inputs` and one under `dashboard.results`. If the author's run could not be recorded, run the model with `naga run` to see why.
- `W_VIEWER_LONG_RUN`: Lower `dashboard.limits.max_replications` so a run at the most replications a viewer allows takes under five minutes in a browser.

[All problem codes](index.md)
