How to use the integrity checker
The integrity checker looks through the whole project for broken references (something pointing at an element, diagram or file that is gone) and for values that don’t fit their property type.
Run a check
Section titled “Run a check”Click the integrity indicator at the right of the status bar. It says Checking… while it runs; a large project takes a few seconds. Then a message gives the result: No problems found, or how many issues of each kind it found, with model errors first. Choose Show in Log to open the Log panel at the full report, or OK to carry on. A check also runs on its own after an import and before an export; those only write to the Log. The indicator shows the result of the last check:
- Green, Valid: no issues.
- Amber, N warnings: the model is sound. Something in a view needs attention, or some values don’t fit their property type.
- Red, N model errors: the model itself has a broken reference.
Read the report
Section titled “Read the report”Each check writes a report to the Log panel, so you can see what was checked as well as what was found:
Integrity check of M2 SandboxChecked 21 model elements, 9 relationships, 14 metamodel elements (6 property types), 12 MOF Core elements and 30 property valuesChecked 3 diagrams (18 shapes, 7 connectors, 1 view link), 1 catalog, 1 board (2 card appearances) and 0 attachments✓ Elements (packages, types, relationship ends, owners, placement): no issues✓ Metamodel references (imports, superclasses, relationship pairs, property types' data types): no issues✓ Property values (elements and property types exist): no issues⚠ Values fit their property types (enumeration values, numbers, dates, true/false, url and email formats): 1 issue✓ Diagrams (parents, notations, shapes, connectors, view links): no issues✓ Catalogs and boards (parents, types, group-by property types, card appearances): no issues✓ Attachments (elements and stored files exist): no issuesResult: the model is sound, with 1 warning listed below (took 0.4 s)Each issue then has its own line, naming the record, where it is, what is wrong and what to do.
Resolve issues
Section titled “Resolve issues”- Broken reference: delete the orphaned element or relationship, or recreate the missing target.
- Orphaned diagram node or connector, view link with no target, card appearance for a card that is gone: click Repair (the wrench) on the Log panel’s toolbar to remove them.
- Type out of place: an element type that is not in a layer of Element Types, or a relationship type that is not directly in Relationship Types. The Palette does not offer it. Drag an element type onto a layer; to make one, right-click Element Types and choose New Layer…
- Value doesn’t fit its property type: for example,
A+in an enumeration that has no such value, orabout 40in an Integer. Click Align Values… beside the line in the Log panel, or right-click the property type, its enumeration or the metamodel in the Explorer. See How to align values after changing a metamodel.