Replacing the cryptic referential integrity delete error message with a friendlier one

Applies to: ABC applications; posted in the Clarion 6 group, no exact version named.

Problem

A referential integrity error on delete is shown with text users do not understand, so each one becomes a support call. The poster asked for a global embed or template place to override it.

Solution

  1. The texts live in the ABC error class. The shipped list of messages is in LibSrc\AbError.trn.
  2. Change a standard message with the ErrorManager methods AddErrors and RemoveErrors. Adding an error number that already exists overrides it; removing your added one returns to the original.
  3. The text may contain macro names, for example for the table name, which are filled in at run time.
  4. A small template that adds such messages was offered by one poster.
  5. The code that raises the error sits deep in the FileManager, so a poster thought no embed reaches it. His suggestion was a check of your own before the delete that shows your message first.

Caveats

  • The poster wrote that he "improved" the message and gave no detail of which route he used.
  • The thread names no macro names and no error numbers; look them up in AbError.trn.

Today (2026)

Likely unchanged for ABC apps; not re-tested. Read the .trn file on your own install to see the current text and numbers.

Sources: Greg B. (Jan 2011, the question), Sean H., Maarten, Carl S. (Jan 2011) in softvelocity.public.clarion6.