Error message examples
Local values (e.g., parameters or locals declared using For or Local, or the deprecated Var, MetaVar or Using) are not objects and thus have no attributes. An attempt has been made to assign to the attribute of a non-object, which is not possible.
You tried to set an attribute of a local variable or a parameter which is not allowed. The following code would generate this error:
Attributes can only be assigned to Analytica objects, i.e. variables defined by adding a node to the model.
One solution would be to create a node variable instead of the local variable, and then assign the attribute for the created object.