Understand error messages returned by recipe script functions
- Last UpdatedJul 28, 2025
- 1 minute read
You troubleshoot recipe applications using diagnostic error codes returned by a recipe function. This section includes a list of recipe function error codes and how to use the RecipeGetMessage() function to show the message associated with an error code.
The RecipeLoad() function sets the value of the analog ErrorCode tag to 0 if it is successful. If RecipeLoad() fails, it sets the ErrorCode tag to the number of the specific error condition.
To retrieve the error code of a recipe function, it must be equated to an InTouch analog tag. The following example shows a script statement to return a recipe function error code:
ErrorCode = RecipeLoad(FileName, UnitName, RecipeName);