MicroStrategy ONE

Script errors: Execution errors

Execution errors occur when an instruction is formed correctly but returns an unexpected result when it is executed. For example, attempting to delete a user who does not exist in the MicroStrategy metadata generates an execution error.

Command Manager recognizes two classes of execution errors:

  • Critical errors occur when the main part of the instruction is not able to complete. These errors interrupt script execution when the Stop script execution on error option is enabled in the Options dialog box.

    For example, if you submit an instruction to create a user, user1, that already exists in the MicroStrategy metadata database, Command Manager is not able to create the user. Since creating the user is the main part of the instruction, this is a critical error. If the Stop script execution on error option is enabled, the script stops executing and any further instructions are ignored.

  • Non-critical errors occur when the main part of the instruction is able to complete. These errors never interrupt script execution, regardless of whether the Stop script execution on error option is enabled.

    For example,  if you submit an instruction to create a MicroStrategy user group with two members, user1 and user2, but user2 does not exist in the MicroStrategy metadata database, Command Manager is still able to create the group. Since creating the group is the main part of the instruction (adding users is secondary), this is a non-critical error.

An error message is written to the Messages tab of the Script window for all execution errors, critical or non-critical. In addition, if logging is enabled, the error message is written to the log file.

Related Topics

Script errors: Syntax errors

Command Manager and prompted objects

Executing a script

Using log files

Viewing the results of a script