Echo Error
This command is used to display error messages in the workflow output log. The message can be text or a numerical expression which is evaluated. The reference to a variable in the message is substituted with the value of the corresponding variable. The message can include unicode characters.
The workflow execution continues with the next commands. However, the workflow execution completes with an error. This command provides an ability to report an error conditionally to the user. You can review the reported error messages in the workflow log.
- Syntax
-
Echo Error: <message>;
- Log Message
- The message argument, as an error.
- Example
-
If the “Invalid Products” query contain a result, display an error message to the workflow log, and mark the workflow completion state as error:
Select Children: %Queries.Invalid Products; IF $selection_size > 0 THEN Echo Error: There are $selection_size invalid products; END IF;