After the update, you may find errors under System Health Check > Validation Check. Below, we discuss what can cause these errors and how to resolve them.
The validation rule has been added/changed
A validation rule was added or became stricter, and existing data does not yet meet the new requirement. For example, a field becomes mandatory, but existing records do not contain a value for that field.
Possible solutions
- Run a data conversion if applicable.
- Correct the existing records via a scheduled task or a workflow.
- Use a default value if applicable. Note: this helps with new records but does not correct existing invalid data.
- Remove records that do not meet the validation requirements and cannot be fixed.
For developers
Remember that a changed validation rule may require existing data to be updated. This must be clearly communicated to the user. Therefore, before the update:
- Describe the change and its impact in the release notes.
- Add a clear TODO message before the update.
- State whether a data conversion or another corrective action is required or applicable.
A validation can be technically correct but too strict for the actual use case. Therefore, before adding or updating a validation, consider:
- Should the validation apply in every situation, or can it be limited to a specific status, phase, or process step?
- Would a warning be more suitable than a blocking validation?
- Does the validation prevent a user from completing a valid business scenario?
- Always consider how a newly added or updated validation could affect related records.
For example:
- A parent record contains an “Is final” checkbox.
- Child records contain a “Number” field.
- Each child record is linked to the parent record.
- The “Number” field has a validation rule: for final records, “Number” must contain a value.
When a user sets the parent record as final, the child records also become final. As a result, child records that do not contain a “Number” value become invalid. In such cases, the system should warn the user before completing the action.
Troubleshooting
- Check the release notes and/or the validation rule in the integrated model to determine whether it was recently added or changed.
- Choose the appropriate corrective action: use a data conversion, a one-time correction, a default value, remove invalid records, apply a component fix, or use a combination of these.