Skip to main content

Error codes

This page explains the codes that the gateway, the opcua-omni-edge check command, VS Code and the browser editor show. The code is at the start of each message, for example MAP-E001. The letter E marks an error: the gateway does not start, or the editor refuses the entry. The letter W marks a warning: the gateway starts and writes the message in its log.

Configuration file (CONFIG)​

The gateway checks the configuration file against the schema before it starts.

CodeMeaningWhat to do
CONFIG-E001The configuration file does not match the schema. The message lists each problem with the path of the entry, for example /instances/1. The gateway does not start.Correct each listed problem. Look up any other code in the message on this page. See Configuration.

Server options (SRV)​

These codes come from the serverOptions: section. The schema cannot check these rules, so a separate check reports them.

CodeMeaningWhat to do
SRV-E001An advertised URL is not an opc.tcp:// URL with a host.Write the URL as opc.tcp://host:4840. See Server.
SRV-E002The resource path of an advertised URL is not the same as serverOptions.resourcePath.Set resourcePath to the path of the URL. See Server.
SRV-E003serverOptions.resourcePath does not start with /.Add / at the start of the value. See Server.
SRV-E004A host or port setting has a ${name} placeholder that the gateway does not know. Only ${hostname} and ${port} are replaced.Use ${hostname} or ${port}, or write the value in full. See Server.

Mapping entries (MAP)​

These codes come from the entries of mapping:. Each entry needs exactly one source key.

CodeMeaningWhat to do
MAP-E001A mapping entry has no source key. It names the node but not what feeds the node.Add one source key: s7:, modbus:, ethernetIp:, value:, file: or folder:. See Mappings.
MAP-E002A mapping entry has more than one source key.Split the entry into one entry for each source, or delete the keys that you do not need. See Mappings.
MAP-E003The gateway has no installer for the type of a mapping entry. The message says this is a gateway defect and not a configuration error.Report the defect to Sterfive with the configuration file.

These codes come from the inputs: of a value: entry and from the address of a modbus: entry. The address has the form <connection>:<address>.

CodeMeaningWhat to do
INPUT-E001The address of an input is empty.Write the address of the input as <connection>:<address>.
INPUT-E002The address of an input does not start with a connection name.Start the address with the connection name and :.
INPUT-E003The connection name of an input is used for more than one connection, so the gateway cannot find the protocol.Give each connection a different name:.
INPUT-E004The Modbus address of an input has a table or an address that the gateway cannot read. The message gives the reason.Write the address as <table>:<address>, for example holding:12. See Modbus.
INPUT-E005A raw Modbus address of a coil or discrete table has a machine type. A bit has no machine type.Remove the machine type from the address.
INPUT-E006A raw Modbus address of a register has no machine type.Add a machine type, for example holding:10,int16. Or name a point: <connection>:<pointName>.
INPUT-E007The connection has no point with the name that the input uses. The message lists the points that the connection has.Correct the point name, or add the point to points: of the connection.
INPUT-E008The point that the input names has no at: key.Add at: to the point.
INPUT-E009No device connection has the name that the input uses. The message lists the declared connection names.Correct the connection name, or add the connection to brownfieldDevices:.
INPUT-E010The address of an input for a non-Modbus connection has nothing after the connection name and :.Write the address after the :.
INPUT-E011The name of an input is not a plain identifier. The formula must refer to it as $name.Use letters, digits and _ only. Do not start the name with a digit.
INPUT-E012The point that the input names is on a register table and has no type:. The gateway cannot decode the registers.Add type: to the point.
INPUT-E013The gateway has no jsonata accessor for the protocol of an input. The message calls this a wiring defect.Report the defect to Sterfive with the configuration file.
INPUT-E014The gateway started a value: entry with inputs:, or a modbus: entry, without its configuration. The gateway cannot resolve the connection names.Report the defect to Sterfive with the configuration file.
INPUT-E015A raw Modbus address is not in the registers that the connection polls. The poll plan comes from points:.Declare a point at this address and use its name: <connection>:<pointName>. See S7.
INPUT-E016A modbus: entry names a connection that is not a Modbus connection.Name a Modbus connection in the modbus: entry.
INPUT-E017A modbus: entry names a point that has a conversion. A direct link reads the raw register, so it publishes a wrong number.Publish the point with expose:. Or use a value: entry with inputs: and do the arithmetic in value:.
INPUT-E018A modbus: entry reads a register with a machine type that the gateway cannot decode. The message lists the types that it can read.Use a machine type from the list in the message.

Modbus addresses (MODBUS)​

This code comes from the schema. VS Code and the check command show it when the value of a modbus: key has a wrong form.

CodeMeaningWhat to do
MODBUS-E001The value of modbus: is not <connection>:<pointName> and is not a raw address.Write <connection>:<pointName>, or a raw address such as M1:holding:12,float32. A register needs a machine type. A bit, such as M1:coil:3, has none. See Modbus.

Direction (DIR)​

These codes come from the direction: key of a mapping entry. The gateway reads devices only. A write fails, in the order of the rules below.

CodeMeaningWhat to do
DIR-E001The entry sets direction: to write or both, but the gateway cannot calculate the value backwards. The message gives the reason.Remove direction:, or follow the reason in the message. See Mappings.
DIR-E002A link with scale: or offset: has inverse:. Only a computation uses inverse:. The gateway inverts a link by itself.Remove inverse:.
DIR-E003The entry sets direction: to write or both, but the access: of the Modbus point is RO.Correct access: of the point, or correct direction: of the entry.
DIR-E004The entry sets direction: to write or both. The gateway cannot write to a device today. The gateway does not start.Remove direction:, or set it to read. See Mappings.
DIR-E005The value of direction: is not read, write or both.Use read, write or both.
DIR-E012The entry writes to a Modbus raw address. A raw address has no access: for the gateway to check.Declare the register in points: with its access:, and name the point in the entry. See Mappings.

Scaling (SCALE)​

These codes come from the scale: and offset: keys of a mapping entry.

CodeMeaningWhat to do
SCALE-E001scale: is not a finite number.Write a number for scale:.
SCALE-E002scale: is zero. Every reading becomes the offset, and the gateway cannot invert the value.Write a scale: that is not zero.
SCALE-E003offset: is not a finite number.Write a number for offset:.
SCALE-E004The entry has scale: or offset:, but its node does not have a numeric data type.Remove scale: and offset:, or use a node with a numeric data type.
SCALE-E005A modbus: entry has scale: or offset:. Modbus scaling belongs to the point.Move scale: and offset: to the point in points:. See Modbus.

Modbus import (IMPORT)​

These codes come from import: of a Modbus connection, which reads a vendor file, and from the binding of a mapping entry to its node. Some of the codes with E are warnings in some cases. The message shows the real severity.

CodeMeaningWhat to do
IMPORT-E000The editor failed in an unexpected way when it resolved the points of a connection. The message gives the cause.Read the cause in the message. Report it if the configuration file is correct.
IMPORT-E010The gateway cannot find the format of the file.Set format: to the closest reader. See Modbus.
IMPORT-E011The gateway cannot read the file of import:. Or import: needs a configuration directory, and the gateway did not load the configuration from a file.Correct the file name. Load the configuration from a file.
IMPORT-E012The file has a malformed row or element, or an unknown value. The gateway does not skip it. The message gives the line or the path.Correct the row or element that the message names.
IMPORT-E013An address of the file is out of range after the gateway sets the address base.Correct the address in the file.
IMPORT-E014The address base of the file is not sure. A SunSpec file starts its models at PDU address 40000. The gateway reports this as a warning.Check the addresses with a preview read of the device before you use them.
IMPORT-E021Two points collide. They have the same name, or they overlap on a table. Only points with bit: or bitmask: can share registers.Rename a point, or change its address.
IMPORT-E030A point does not fit its table. A value and its scaleRegister span more entries than the table cap.Move the scale register closer to the value, or split the profile.
IMPORT-E031A mapping entry or a point has a node that does not exist, or the connection has no target for its points.Correct the browse path and the namespace aliases. Or add expose: to the connection, or node: to the point. See S7.
IMPORT-E032The source has a construct that the gateway does not support, for example a BCD data type or an array address.Remove the point from the import, or use a different format. See Modbus.
IMPORT-E033A point has an access that its table does not allow, for example RW on a read-only table.Correct access: of the point.
IMPORT-E034A point is not consistent with itself, for example scaleRegister in another table, or a string without a length. The message gives the reason.Correct the point as the message says.
IMPORT-E035The poll plan needs more than 100% of the serial link.Raise pollingRate, merge tables, or split the connection.
IMPORT-W001The editor cannot read the import: of a connection. It cannot check the point names of this connection.Correct the import: file. Then the editor checks the point names.
IMPORT-W020A point in points: replaces an imported point.Check that the replacement is what you want. See Modbus.
IMPORT-W022A pattern of overrides: matches no point of the import. It does nothing.Correct the pattern. See Modbus.
IMPORT-W040The gateway imports writable points as read-only, because it cannot write to a Modbus device today.Do nothing for a read. A write needs a point with access: that you declare by hand.
IMPORT-W041The source file claims RW on a read-only table.Correct the file, or ignore the warning.

Folder entries (FOLDER)​

These codes come from a folder: mapping entry. See File and folder.

CodeMeaningWhat to do
FOLDER-E001A key of access: is not correct: an unknown key, a value that is not a list, or a role that the gateway cannot find.Use the keys that the page of the folder entry lists. Write each role as a standard role name, a browse name or a node id.
FOLDER-E002poll: of a folder entry is not a number of 1000 or more.Write a number of milliseconds, 1000 or more.
FOLDER-E003The gateway cannot apply access:, because its file transfer component is too old. The gateway does not start, so that the folder does not stay open.Update the gateway.
FOLDER-E004ignore: of a folder entry is not a list of patterns, or a pattern is empty or starts with #.Write a list of texts, such as ["*.part", ".*"].

Event sources (EVT)​

This code comes from the eventNotifier: key of an instance.

CodeMeaningWhat to do
EVT-E001An instance has eventNotifier: true, but it is a Variable. An event source must be an Object.Remove eventNotifier:, or make the instance an Object.

Types (TYP)​

This code comes from the address-space check of VS Code. The schema cannot find it, because the loaded model decides whether a type is abstract.

CodeMeaningWhat to do
TYP-E001The typeDefinition: of an instance is an abstract type. The gateway cannot instantiate it.Name a concrete subtype.

Templates (TPL)​

These codes come from the template expander of instances:. Each code has a sample in the error catalogue of the templates page.

CodeMeaningWhat to do
TPL-E001use: names a template that templates: does not define. See the sample.Correct the name, or add the template.
TPL-E002An expression reads a name that is not in its scope. A template sees only its params and parent. See the sample.Declare the value as a param, and give it in with: or in the record.
TPL-E003A param without a default gets no value. See the sample.Give the value in with: or in the record, or give the param a default.
TPL-E004The same name comes from the with: of the block and from a record. See the sample.Give the value one time only.
TPL-E005A template uses itself, directly or through other templates. See the sample.Remove the loop.
TPL-E006A value does not have the type of its param, or is not in its enum list. See the sample.Correct the value.
TPL-E007A template takes a counter that no enclosing block declares in counters:. See the sample.Declare the counter in counters: of an enclosing block.
TPL-E008Two instances get the same browse path or the same node id after expansion. See the sample.Give each instance a different browse name or node id.
TPL-E009A $Name anchor names a browse name that the expansion gave to more than one instance. See the sample.Anchor on a unique name, and walk down from it.
TPL-E010jsonata cannot read or evaluate an expression, or the expression uses $now, $millis, $random or $eval. See the sample.Correct the expression. An expansion must give the same result every time.
TPL-E011A record, or the with: of a layout entry, gives a value for a param that the template does not declare. See the sample.Correct the param name, or declare the param.
TPL-E012repeat: does not give a whole number of zero or more. See the sample.Write a whole number of zero or more.
TPL-E013A table has a column that no param matches, or has no column for a required param. See the sample.Rename the column, or add the column or the param.
TPL-E014A cell of a table cannot be read as the type of its param. See the sample.Correct the cell.
TPL-E015The expander cannot read a table file. See the sample.Correct the file name, or the file.
TPL-E016A template or a block does not have the correct shape. See the sample.Correct the shape as the message says.
TPL-E017An override names a browse path or a node id that no instance has after expansion. See the sample.Write the path as dump-config prints it, or write the node id.
TPL-W001A value has more digits than its format. The expander keeps the value whole. See the sample.Widen the format of the counter.
TPL-W002A block that reads a table also uses index. A moved or added row changes every value after it. See the sample.Put the value in a column of the table.

Runtime nodes (RTN)​

This code comes from the browser editor, when it is connected to a running gateway.

CodeMeaningWhat to do
RTN-E001An instance has the browse name of a runtime node that already exists under the same parent. The gateway orphans the runtime node at its next start.Rename the instance, or delete the runtime node first.