FME Transformers: 2024.2

Categories
Data Quality
Database
Strings
Related Transformers
AttributeEncoder
DuplicateFilter
GeometryValidator
JSONValidator
StringCaseChanger
StringLengthCalculator
Tester
TestFilter
XMLValidator

AttributeValidator

Validates any number of attributes against user-defined test conditions, routing the feature according to the outcome of the test(s) and identifying any tests it has failed.

Jump to Configuration

Typical Uses

  • Performing data quality testing
  • Enforcing data integrity by testing attributes against a set of acceptable conditions
  • Ensuring attributes meet the requirements of constraints and domains in output databases

How does it work?

The AttributeValidator receives features with attributes to be tested against user-defined Validation Rules.

A wide variety of Validation Rule types are available. The rules are created in a table, and each row consists of the attribute(s) to be validated, the type of test to be done, and any configuration required. An attribute may be tested against any number of rules, and a rule may be applied to any number of attributes.

There are two output ports - Passed and Failed.

Passed features are those whose attributes have passed all Validation Rule tests that have been defined.

If any tests are failed, the features will be output via the Failed port, with descriptions of the failures:

  • The first test failed will be documented in the new attribute _fme_validation_message.
  • The first test and any further tests failed will all be documented in the new list attribute _fme_validation_message_list{}.

Tests are evaluated in the order they are listed in the Validation Rules table in the parameters dialog.

Creating Validation Rules

Each rule consists of the attributes to be tested and the test to be performed. The following tests are available.

Examples

Usage Notes

  • Output feature order may be controlled with the Advanced > Preserve Feature Order parameter.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases AttributeClassifier, StringClassifier
History This transformer replaced the AttributeClassifier transformer.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the AttributeValidator on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.