Skip to main content

Common Errors

Every so often, you will make a mistake, and InterSystems IRIS will display an error message. You can find detailed information about all error messages in the documentation. Below you'll see examples of some common errors you'll encounter:

  • <SYNTAX> for extra spaces and misspelled commands.

  • <UNDEFINED> for trying to use variables that don't have assigned values. The message shows the undefined variable's name preceded by an asterisk.

  • <CLASS DOES NOT EXIST> for trying to run a class method in a class that doesn't exist. The message shows the incorrect class name preceded by an asterisk.

  • <METHOD DOES NOT EXIST> for trying to call a class method that doesn't exist. The message shows the incorrect class method and class names preceded by an asterisk.

  • <PRIVATE METHOD> for trying to call a private class method.

  • <NOROUTINE> for trying to run a routine that doesn't exist. The message shows the incorrect routine name preceded by an asterisk.

  • <NOLINE> for trying to call a procedure that doesn't exist.

Terminal


USER>write  "hi"

WRITE  "hi"
       ^
<SYNTAX>
USER>s et x = 5

S et x = 5
^
<SYNTAX>
USER>sit x = 5

SIT x = 5
^
<SYNTAX>
USER>write ##clss(%SYSTEM.Util).NumberOfCPUs()
^
<SYNTAX>
USER>write ##class(%SYSTEM.Utils).NumberOfCPUs()       

WRITE ##CLASS(%SYSTEM.Utils).NumberOfCPUs()
^
<CLASS DOES NOT EXIST> *%SYSTEM.Utils
USER>write ##class(%SYSTEM.Util).numberofcpus()         

WRITE ##CLASS(%SYSTEM.Util).numberofcpus()
^
<METHOD DOES NOT EXIST> *numberofcpus,%SYSTEM.Util
USER>do ##class(%SYSTEM.Util).mpadd(4,5)

DO ##CLASS(%SYSTEM.Util).mpadd(4,5)
^
<PRIVATE METHOD>
USER>do ^%DD

DO ^%DD
^
<NOROUTINE> *%DD
USER>do INT^%DD

DO INT^%DD
^
<NOROUTINE> *%DD
USER>do ALLL^%FREECNT

DO ALLL^%FREECNT
^
<NOLINE>
USER>write xx

WRITE xx
^
<UNDEFINED> *xx
USER>
Feedback