MicroStrategy ONE

Script errors: Syntax errors

Syntax errors occur when Command Manager encounters an instruction that it does not understand. This can be due to a typographical error (CERATE for CREATE, for example), or a statement that does not follow the required syntax in another way. For examples of the correct syntax for all Command Manager statements, see Project source statement syntax and Narrowcast Server statement syntax.

Command Manager checks the syntax of the entire instruction set before beginning execution. If it encounters a syntax error during this check, it does not execute the instruction set. instead, it displays the portion of the instruction set where the error was detected in the Script window and highlights the instruction. An error message is also displayed on the Messages tab of the Script window. Finally, if logging is enabled in the Options dialog box, the error message in the Messages tab is written to the log file.

For example, if the incorrect instruction Create "jsmith" password " is submitted instead of the correct instruction Create user "jsmith" password ", Command Manager highlights the words Create "jsmith". It also displays the following error message in the Messages tab and records it to the log file:

Copy
Expected 'User', 'Profile', 'Security', 'DBLogin', 'DBConnection', 'DBInstance', 'Connection', 'Filter', 'Metric', 'Report', 'Invalid', 'Event', 'Schedule', 'Folder', 'ScheduleRelation', 'ScheduleRelations', 'Database', 'Attribute', 'Project', 'Shortcut', 'Fact', 'Consolidation', 'CustomGroup' or 'All'.

Related Topics

Script errors: Execution errors

Viewing the results of a script

Enabling or disabling syntax highlighting

Project source statement syntax

Narrowcast Server statement syntax