Ruleset archive errors

Errors occur when you create a ruleset archive because some ruleset variables are used without being initialized.

Errors

When the rule engine tries to read an attribute that has not been written, the following message is displayed:

GBRED0040E = The attribute ''{0}'' is read but never written

If the ruleset variable is declared but never used (read or write access), the following message is shown:

GBRED0041W = The attribute ''{0}'' is written but never read

If the ruleset variable is initialized but never used (read access), you get the following message:

GBRED0042W = The attribute ''{0}'' is not used

For a list of rule engine errors, see Rule Designer Messages - Messages pertaining to the rule engine.

Note: Set the system property com.ibm.rules.engine.variablesetinspector to false to disable the variable checking.
Solutions
  • GBRED0040E

    A ruleset variable must be initialized in one of the following ways:

    • When declared in Rule Designer
    • In the initial or final action of a ruleflow
    • In the action part of a business rule
    • In a user function
  • GBRED0041W

    Remove the assignment of the variable or use the ruleset variable somewhere in the ruleset.

  • GBRED0042W

    The ruleset variable must be removed or used somewhere in the ruleset.