Troubleshooting
Validation messages that UP reports on the model, each with cause and fix. In the message texts below, n stands for a number and x for a name.
Name contains invalid characters (x)!
Also Name starts with number (x)!. Only the letters a-z and A-Z, digits and the underscore are
allowed, and the first character must not be a digit. Fix: rename, for example Cylinder_A
instead of Cylinder A.
Name exceeds the length of n characters!
The name is longer than its element allows: 8 characters for controllers, 10 for B&R user objects (UserObject, UserObjectConfig), 20 for message definitions, 24 for variables, digital inputs and outputs and interlocks, 31 for children, test suites and test case instances. Fix: shorten the name.
Resource name is not unique!
Also Empty name!. UP usually shows Resource name is not unique within x!, where x is the type of
the element that owns the list. Another element of the same type in the same list has the same name,
or the name is empty. For a local variable the message is
Resource name is not unique within interfaceLocal and it's inheritance!: the name is also used
in the inheritance of its controller. Fix: rename one of them.
name x already exists in a different upper case spelling (y)
A state or command has the name of another state or command, written with different upper and lower case. A command and a state of the same name belong together (Command). Fix: write the name exactly the same, or choose another name.
Command name: x is not unique!
Another command has the same name. Fix: rename one of them (Command).
Command id: n is not unique!
Also Command id: n is not unique (busy id)!, ... (group id)! and Invalide constant range: n!.
The command constant n is used by another command, or another command has n+1 (busy id) or n+2
(group id); a negative constant is not allowed. Fix: change the command constant so that the
constants of two commands are at least 3 apart (Command).
Resource id: n is not unique! [...]
Also Invalide id range: n!. Two controller instances of the ControllerTree have the id n; the
list in brackets names level and controller of each. In a ClusterInstance the id is the id inside
the cluster plus idOffset. Ids start at 1. Fix: give one instance a free id, or change the
idOffset (ControllerInstance,
Cluster).
Instance Nr: n is not unique! [...]
Also invalid instance Nr range: n!. Two instances of the same controller have the instanceNr n
(in a ClusterInstance plus instanceNrOffset); instance numbers start at 1. Fix: give one instance
a free instanceNr, or change the instanceNrOffset
(ControllerInstance).
id: n is not unique!
Also Invalide id range: n!. Two message definitions have the id n, or a message cluster or
cluster instance has the id of another one. Message ids start at 1, cluster ids at 0. Fix: give
one of them a free id
(MessageDefinition).
Type must be defined either in the message definition or in the definition override
The message has no type or no ackType, neither in its definition nor in a definition override. Fix: set type and ackType in one of them (MessageDefinition).
The start state has to be defined
A statemachine or a SuperState has no start; a state override needs one only when it has substates. Fix: add the start (Statemachine).
state x is defined in the interface but not available in the statemachine
The controller interface declares the state x, but the statemachine of the controller has no state of this name. Fix: add the state with exactly this name, or remove it from the interface (Statemachine).
The interface of a derived controller must implement the interface of the base controller (x)
The controller extends a base controller, but its controller interface is neither x nor implements x. Fix: let the interface implement x (ControllerInterface).
method overrides base method --> change of interface not allowed!
Also method overrides base method --> change of interface (x) not allowed!. A controller method
that overrides a method of the base controller has its own input or inout parameters, or another
return type than x. Fix: remove the parameters and keep the return type of the base method
(ControllerMethod).
Type mismatch in x 'code': 'y' is not assignable. Expected: ...
Also Invalid number of parameters in x 'code'. Expected: n, Provided: n.. In a code snippet an
argument y of the call has none of the expected types, or the call has the wrong number of
arguments. UP checks this only when datatypeValidation is on in the ModelConfig. Fix: use one of
the listed types, or correct the arguments
(datatypeValidation).
No condition implemented
A guard has no code; reported only when datatypeValidation is on. Fix: write the condition (Statemachine).
DEPRECATED: 'x' mark the crossed out type and press F1 for more information
A warning: the element is of the deprecated class x. Fix: replace it as described in Deprecated Elements; if that is not possible, suppress the warning for x in the ModelConfig (suppressDeprecatedWarning).
Only one ControllerInstance allowed in root level
Also No empty root level allowed, Cluster not allowed in root level and
Only one level without parent level allowed (x), where x lists the names of these levels. A
ControllerTree has exactly one level without parent level, and it holds exactly one controller
instance and no ClusterInstance. Fix: move the other instances to a lower level
(ControllerTree).