Undefined {objecttype} {objectid} is referenced in {objecttype} <ObjectID>.

English Query

English Query

Undefined {objecttype} {objectid} is referenced in {objecttype} <ObjectID>.

Message Text

This object references another object that has not been defined.

Explanation

This error occurs when there is a dangling reference. A dangling reference can result from:

  • Making errors while creating or editing the Semantic Modeling Format (SMF) (for example, typing adress instead of address).

  • Keeping objects referenced by an object that is being deleted. When deleting an entity, delete the objects that refer to it. This can be done in the Confirm Deletion dialog box.

  • Importing a model that contains a reference to an object that has been deleted.

  • Referencing a role in a phrasing that does not exist in the relationship.
Action

To prevent this error:

  • Delete all objects that refer to the object. By default, English Query deletes the objects which refer to an entity or role that is being deleted. In the Confirm Deletion dialog box, do not clear the In addition, delete the following objects which refer to the entity <entityname> check box.

  • Check all typing when editing SMF and make sure that the name of the object does not contain typographical errors.

To correct this error:

  • Delete the objects that reference this deleted object.

  • Create the missing object.

  • Import a model that contains the missing object.

See Also

Compile-Time Error Messages (Authoring Object Model)

How to add an entity to a relationship

How to add tables and views from a SQL data source

How to create an entity

How to create relationships using the Create Relationships command

How to delete an entity

How to edit the entity's role in a relationship