Use business rules to measure the quality, completeness and accuracy of your data.
A rule is a Function that returns a true or false value, which translates to a pass or fail. This can be either a default Function (like 'Contains' or 'Is Date') or a custom one.
The easiest way to get started is to use Suggest validation rules, which profiles the data to then suggest formulas to be applied to columns as validation rules. Uncheck any suggestions that are not useful and apply to create rules separated into rule groups ready for further changes if required.
In Explore mode, Profile your data to see the Suggest rules action button, which will create a new Workflow containing a Validate step.
Selecting Apply ruleset allows you to select any Rulesets that have been created and map columns to the rules where the names differ.
On the Validate step, click Rules to view and edit any existing rules and to Add rule or Add group.
Each rule has a name and summary, a parent rule group and a Function definition. The Function can either be a pre-existing Function in Data Studio, or a custom Function created in the Function builder. When building a custom Function, pick one of the relevant columns (or a parameter) as the input value and ensure the Function returns true/false as the result.
Rule groups represent logical collections of validation rules and can have different thresholds set. For example, a group of compliance rules may have a fail threshold of 99%, but a data quality group of rules may use a lower threshold and be increased over time as data and processes are improved.
The Status result column for each rule is based on these thresholds, so Red below the fail threshold, Green at or above the pass threshold, and Amber in between.
Each group has a name and description, pass and fail threshold, plus an optional column to weight the results. As well as counting the number of Passed rows and Failed rows, the results will also include Passed weight and Failed weight columns, which contain a sum of the chosen column for all the passing/failing rows. For example, weighting each rule's results by total sales allows you to prioritize data quality issues for the highest spending customers with the most overall impact.
Rules can be set to ignore or skip values that do not need to be validated, and so should not impact the rule pass rate. For example, where 10 emails are being checked; 5 are valid, 2 invalid and 3 are blank, the pass rate would be 5/7 (rather than 5/10 if all values were considered).
The Ignore Null values checkbox can be selected when first creating a rule using an existing Function. However, values other than null can also be ignored using the Ignore literal value when designing a custom Function.
You can use a scripting language to create new and manage existing validation rules, especially if you're making several changes at once. Click Edit script to open the script editor and make the required changes, such as renaming, re-ordering or changing rule groups.
To open a read-only version, click View script.
You can create Functions using the same functionality in the Function script editor.
A rule is made up of a rule group, group id, rule name, rule id, rule summary and Function in that order. For example:
## Rule_Group_1 {{c1e5ff0d}}
# Rule_1 {{d1f5ff0c}}
-- Summary of rule 1
IsEven(3)
Using the script editor:
Validation results are available in several formats:
Similar to the Source and Profile step, the Validate step has a Source metadata dropdown that enables you to include the lineage metadata of input data. This information (such as file name or batch ID) is useful to include as additional columns in the aggregated results.
This step validates and enriches addresses in bulk.
Addresses will be cleaned by verifying them against the official postally-correct address files for the relevant country. Cleaned addresses are assigned a match result, based on the accuracy of the original address. You can define layouts specifying the number, content and format of the address output columns. Choose one of the available Additional datasets to enrich your data. The datasets that are available to you depend on your license.
Validate emails based on the format or domain address.
Select the Email column and pick one of the two available Validation type options:
Format Check: Checks whether the value matched a valid email format. Returns either true or false.
Examples of valid and invalid email formats:
Format | Result |
---|---|
info@gmail.com | Valid |
first.second-name@gmail.com | Valid |
first.name+tag@gmail.com | Valid |
name@info@gmail.com | Invalid |
name"not"right@test.com | Invalid |
another.test.com | Invalid |
name@incorrect_domain.com | Invalid |
com.domain@name | Invalid |
first_address@gmail.com, second_address@gmail.com | Invalid |
Only one email can be validated at once; lists of emails as seen in the last example will be rejected.
Domain Level: Checks whether the value has a domain that exists and is an email server. This option returns both an overall validity result (true or false) in the Email domain: Result column, and additional information in the Email domain: Error column describing the reason for failure. The possible outcomes are:
Error | Result | Description |
---|---|---|
Valid | True | Domain exists and is a mail server. |
Bad format | False | Email format is invalid. |
Invalid domain | False | Domain validation check failed. The domain may not exist, or may have been flagged as illegitimate, disposable, harmful, nondeterministic or unverifiable. |
Invalid name | False | Local part validation failed. For example it may have been identified as a spam trap or role account such as "admin@server.com". |
Failed to perform DNS lookup | False | An error occurred when attempting to perform the DNS lookup. |
Domain level validation results are cached with results refreshed every 30 days. The cache validity is configurable in Settings > Workflow steps by changing the Email validation cache validity setting.
Click Show step results to view the results.
Validate global phone numbers using the Validate phone numbers step in Workflows.
There are two types of phone validation available:
Live validation requires an Experian Phone Validation license. If you have a license already you can find your token in the Self Service Portal. Contact your account manager if you are interested in live phone validation.
Validated phone numbers incur cost in form of credits that can also be monitored in the Self-service portal.
Global coverage is over 240 countries and territories.
The phone number format is validated against a library.
Connect the step to the source step and specify the following:
Click Show step results to view the results. The following columns will be appended to your data:
The live status of a phone number is checked via a live ping using the Experian Phone Validation product. To ensure access to the service, Experian IP addresses need to be whitelisted.
To enable live validation go to:
Go back to the Validate phone numbers step in the Workflow, open the Live validation options and select the Validate phone numbers v2 step setting from the drop down menu. Live validation options are now available:
When validating data from multiple countries at once choose no selection from the country drop down and ensure phone numbers submitted are in E164 format.
Clicking Show step results will append the result columns to your data.
Format validation is suitable for ensuring the phone numbers in your data are in the correct format for a country. It includes information on whether a phone number is a mobile phone or landline.
If you aim to contact your customers by phone or text message you will need to know if the phone number is active and can be reached. It could also be helpful to know if a phone number is disposable. Ensuring phone numbers are accurate and contactable can help with cost efficiencies.
There is currently no limit of numbers that can be submitted. They will be validated in batches of 10,000.
Time of day and number of requests submitted at the same time can influence the speed of returned results, e.g. during peak business hours. For 10,000 phone numbers, the estimated time is a few minutes.
You will have purchased an amount of credits with your phone validation license. The exact cost can differ depending on the returned results. See our phone validation documentation for more details.
Any other Experian Phone Validation questions can be found on the Phone Validation FAQ page.