Skip to main content

Validating Decision Tables

Validate checks a decision table for problems that would stop it from being published, and looks for rules that overlap and inputs that no rule covers. This page lists what each check reports. To run the table against sample inputs, see Testing decision tables.

How Validate runs​

Select Validate in the editor toolbar. The Validation tab opens and the check starts. A badge on Validate and on the Validation tab shows the number of findings. Its color follows the most serious finding: red for Fix, amber for Check, and grey when there are only notes.

Validate works on the table as it is in the editor, including unsaved edits. You don't need to save first, and nothing is stored.

  1. Local checks run first, in Studio. If any fail, Validate stops and shows "Can't publish yet: fix N problem(s) first." with the messages below. The same local checks run when you select Save, and a failure blocks the save.
  2. The server check compiles the table and analyzes it for conflicts and gaps. If you edit the table while this check runs, its results are discarded.

If no workspace is selected, Validate shows "Select a workspace before validating the table." If the request fails, it shows "The table could not be validated. Try again."

Local check messages​

MessageWhen it appears
Column X: use a name starting with a letter or underscore, followed by letters, numbers or underscores. Put spaces in the label / description instead.An input column name starts with something other than a letter or underscore, contains other characters, or is a FEEL keyword such as null, true, if, in or and. Output column names only need to be non-empty.
Column X: column names must be unique.Two columns share a name.
Unique policy violation: Rows 1, 2 have identical conditions and will always match simultaneously.The hit policy is Unique and enabled rows have identical conditions.
Any policy violation: Rows 1, 2 have the same conditions but different outputs. All matching rules must produce the same result.The hit policy is Any and rows have the same conditions but different outputs.
Collect (Count) requires exactly one output column.The hit policy is Collect (Count) and the table doesn't have exactly one output column.
{policy} requires exactly one numeric output column.The hit policy is Collect (Sum), Collect (Min) or Collect (Max) and the table doesn't have exactly one output column.
{policy} requires a numeric output column (Integer, Long, Double, Number), but found: name (type), ...The hit policy is Collect (Sum), Collect (Min) or Collect (Max) and the output column isn't numeric.

The Validation tab​

Before the first run, the tab shows "Run Validate to check this table for conflicts and gaps." with a Validate button. After a run, it shows an outcome title, counts and a table of findings.

Outcome titles​

TitleMeaning
Ready to publish.The check is clean.
You can publish, but check these first.Nothing blocks publication, but there are warnings, or the check could not cover every input.
No conflicts or gaps found. Some conditions weren't checked.The check found nothing, but some conditions are outside what it can read.
Can't publish yet: fix N problem(s) first.The table has compile errors.
Can't publish yet: N rule conflict(s) to fix.Rules conflict under the hit policy.
Can't publish yet.Shown for other blocking results.

The title is red when it blocks publication, amber when it needs attention or the request failed, and green when the table is clean. Under it, the counts read "n to fix, n to check, n note(s)".

Coverage​

A coverage sentence reports whether every input matches a rule:

  • "Every input matches a rule (N combinations checked)."
  • "Some inputs match no rule (...)."
  • "We could not check whether every input matches a rule."

It can end with " Some expressions were too complex to check." or " The check could not run on this table." An information tooltip explains the scope: "The check covers every declared input type, including empty values, and the expressions it can read. It cannot tell whether the rules are right for the business; use test cases for that."

If you edit the table after a check, the tab adds "· The table changed since this check." Select Validate Again to refresh it.

Findings​

Each finding has a severity, a problem, the rules involved and the columns involved.

SeverityMeaning
FixBlocks publication.
CheckA warning to review.
NoteInformation only.
FindingText
Gap"No rule matches when example, so the table returns no result. Add a rule that covers it." The example reads like "age is 17 and plan is empty". Without an example: "Some inputs match no rule, so the table returns no result. Add a rule that covers them."
Overlap that blocks"These rules can match the same input, but hit policy allows only one match. Make their conditions exclusive (they both match when ...)."
Overlap that is allowedA Note: "These rules can match the same input. policy picks the result, so nothing needs to change." Allowed overlaps are merged into one note.
Limitations"Some conditions use formulas, lists or dates the check can't read. Cover them with test cases." and "Not checked: message." The finding has an Open Tests button that opens the Test tab.
Other findingsThe engine message, followed by " (for example when ...)" where an example exists.
Engine errorsFix rows in the form "message (row N, column X, element Y) [DECISION_CODE]".

The rules cell lists "Rule N" links, the first five and then "+N more". Select a link to scroll the grid to that rule and focus the column. The findings table shows 100 rows per page.