Use validation rules to check if the data is in line with the defined standards.
To validate data, you can use several validation types. This flow explains how to set up a validation rule of type 'Query'.
Use a query validation rule to validate if an entered field value is allowed using a dynamic query. Using a dynamic query, you can validate the field value based on one or more field values in another table.
Examples of validations where you can apply a query validation rule:
On creating a sales order, check if address information or contact information is defined for the selected customer. If no address or contact information is defined, the customer cannot be used on a sales order.
On the worker setup, for the worker position, a cost center can be defined in the 'Cost center' financial dimension. Validate if the defined cost center is active. If not active, a warning or error message is given for the worker.
On terminating an employee, check if positions are reporting to the employee. If positions are still reporting to the employee, you cannot terminate the employee.
Before you can set up a query validation rule, set up the dynamic query to be used.
Name | Responsible | Description |
---|---|---|
Set up dynamic queries |
Data quality administrator |
Use a dynamic query to find one or more records in the database. The found records are the input for further processing. You can use a dynamic query on:
To define a query range, you can use a function. |
Set up validation rule of type Query |
Data quality administrator |
Use validation rules to check if the data is in line with the defined standards. Use a query validation rule to validate if an entered field value is allowed using a dynamic query. Using a dynamic query, you can validate the field value based on one or more field values in another table. Examples of validations where you can apply a query validation rule:
Before you can set up a query validation rule, set up the dynamic query to be used. You can add validation rules in these ways:
|
Set up validation rule message |
Data quality administrator |
You can define a message that is shown if the validation rule is not met. If no validation rule message is defined, the default message is shown if the validation is not met. In case of a data pattern validation, the applicable data pattern can also have a message defined. In this case, the message priority is:
You can also enter a description of the validation rule. You can translate both the validation message and the validation rule description. |
Set up validation rule conditions |
Data quality administrator |
For each validation rule, you can set up conditions. The validation rule is only applied if the conditions are met. To define a validation rule condition, you use a query. The validation rule is applied only to the records that are found by the query.
You can use these types of queries:
|