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

**URL:** <https://forums.softvelocity.com/t/replacing-the-cryptic-referential-integrity-delete-error-message-with-a-friendlier-one/623>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 1:10am UTC](https://forums.softvelocity.com/t/replacing-the-cryptic-referential-integrity-delete-error-message-with-a-friendlier-one/623 "2026-11-09T01:10:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:10am UTC](https://forums.softvelocity.com/t/replacing-the-cryptic-referential-integrity-delete-error-message-with-a-friendlier-one/623/1 "2026-11-09T01:10:03Z")

</div>

**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.
