Skip to content

Problem codes

The 515 codes that a check of a model can report, from nagasim/core/problems.py. Each problem a check finds carries a code, a severity, a message, a path into the file, the block when there is one, and a hint: naga validate --json and the validate_model agent tool return them. A code starting E_ is an error that stops a run; one starting W_ is a warning that does not. Before 1.0 new codes are added and a message may be reworded, so match on the code and not on the text (see Stability).

A screen shows a code's short line ("On screen" below), filled from the problem's own values; a code without one shows the first clause of its message. The code, the whole message and the hint show on hover.

Area Codes What they cover
Agents 24 Agent types, populations and their messages.
Submodels and libraries 41 Submodel definitions and instances, asset libraries and catalogues.
Data, live feeds and the twin 123 Data sources and bindings, network access limits, live feeds, warm starts, saved states, plant mappings, the twin cycle and the MES.
Networks, fleets and automation 48 Path networks, fleets, workers, motion, batteries and chargers, the investment case and the dispatch plan.
Expressions, stocks and flows 111 Expressions and variables, tables and time series, levels, flows, conversions, conveyors, delays, subscripts and units.
Resources and time 32 Resources and sets, schedules, failures, calendars and arrivals.
Scenarios, checks and the editor 32 Scenarios, assertions, path checks, dashboards, annotations, cranes and piles drawn in playback, and the file version.
Blocks, links and routing 104 Blocks and their parameters, distributions, links, decisions, queues, routings and orders.