TO0200 - npruehs/tome-editor GitHub Wiki

"The record ... field ... violates a type facet: ..."

Summary

  • Name: TypeFacetViolated
  • Code: TO0200
  • Category: Data Integrity
  • Severity: Error
  • Since: 0.7

Each derived type can specify one ore more type facets that constrain its underlying base type. All field values of all records must satisfy all facets of their respective field types.

Example

The following steps generate this type of error:

  1. Create a new field of type Integer.
  2. Create a record with that field and set the field value to -1.
  3. Create a new derived type using Integer as base type.
  4. Set the Minimum Value facet of the new derived type to 0.
  5. Change the type of the field to the new derived type.

How To Fix

  • Change the value of the field to 0 or higher.