Skip to content

아직 한국어로 제공되지 않습니다. 한국어로 제공되는 모든 내용 보기

Stockertim Dictionary · Artificial intelligence · Technology

Data validation rule

Also called validation rule, validation rules, input validation rule

In short

A rule that checks each value meets a condition, such as falling within a date range or appearing on an allowed list, so that bad entries are caught.

  • Beginner
  • Concept
  • Checked

In detail

A data validation rule states what a valid value looks like and flags or blocks anything that does not fit. Common rules check that a date falls within a sensible range, a number is not negative, a code appears on an allowed list, a required field is not blank or an email address has the right shape.

Rules can work at two points. At entry, a spreadsheet or form refuses an invalid value, which stops errors before they start. After the fact, a rule run over existing data flags rows that break it, so an analyst can correct, exclude or investigate them.

Rules come from the data dictionary: if the dictionary says a region is North, South or East, the rule rejects anything else, including spelling variants. An AI assistant can turn a written dictionary into the formulas or code that apply the rules, and can list the rows that fail. The analyst checks that the rules match the real business meaning, since a rule that is too strict flags good data and one that is too loose misses errors.

Results are counted and recorded. Knowing that 3% of rows failed a date rule tells readers how much the data were trimmed and why.

Worked example

After deduplication, 2,270 delivery rows are checked with two rules: the delivery date must fall in the reporting year, and the depot must be on the allowed list.

  1. Rows failing the date rule: 45
  2. Rows failing the depot rule: 25
  3. Unusable rows: 45 + 25 = 70 (none fail both)
  4. Usable rows: 2,270 - 70 = 2,200
  5. Share removed: 70 / 2,270 = 3.08%

The analysis uses 2,200 rows, and the 70 failures are listed separately with the rule each one broke.

In practice

Validation rules are set up in spreadsheets, forms, databases and data pipelines. Analysts also run them as a check whenever a new extract arrives, and finance teams use them to catch keying errors before reports go out.

Watch out

  • Passing every rule does not make data correct; a plausible wrong value still passes.
  • Silently dropping rows that fail a rule hides problems; count and report them.

Learn it properly

Official sources

Facts last checked on 3 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English