Error when trying to configure a rule
Related to Copied
Rule error, validation error, problem saving config, setup error, unable to save config, rule set up.
Problem Copied
There are many possible causes why you are getting a rule error when saving or validating Gateway configuration. In this article, we summarize some of the common error messages seen.
Possible Cause(s) Copied
Error Message 1 - The rule ‘Rule –
Error Message 2 - Absolute/Relative secondary variables should not contains wildcards - only the first data-item returned will be used. To remove this warning, use the ‘first’ function in conjunction with a wpath to get the first matching item.
Error Message 3 - ‘schemas’ : Unmatched child node. Perhaps the nodes are in the wrong order, or the node is invalid at this location.
Error Message 4 - Ignored target for rule ‘
Error Message 5 - Ignored rule ‘
Error Message 6 - Rule ‘
Possible Solution(s) Copied
Solution Error Message 1 - Common syntax errors are caused by misspellings, unexpected tokens, or missing operands.
The syntax of the If…then…elseif…else statement is as follows:
if value > replaceWithValue then
severity critical
elseif value > replaceWithValue then
severity warning
else
severity ok
endif
Useful tool: When configuring a rule, you can right click anywhere on the rule code block, select Templates > If…then…elseif…else to obtain the rule template.
Solution Error Message 2 - please click here for details.
Solution Error Message 3 - please click here for details.
Solution Error Message 4 - please click here for details.
Solution Error Message 5 - Make sure the path alias referenced in the rule block is present.
Solution Error Message 6 - Make sure the active time referenced in the Advanced tab of the rule is present.
Related Articles Copied
- Gateway, Rules, Actions & Alerts
- How do I fix “WARNING Absolute/Relative secondary variables should not contains wildcards - only the first data-item returned will be used…” when saving Gateway configuration
- ‘schemas’ : Unmatched child node. Perhaps the nodes are in the wrong order, or the node is invalid at this location?
- What does the warning message “Ignored target for rule ‘
’ as xpath contains non-identifying predicate” mean?