A database relation object is being created or referenced in which some of the related information was missing, not primary or candidate, or invalid.
Make sure both tables involved in the relation are in the database.