ACC: Cascade Deletes May Cause Error Message in Synchronized Replica (158934)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q158934
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you open a database after synchronizing it with another member of
the replica set, you see a replication data error because an Insert
operation failed due to referential integrity violations. You see one of
the following errors.
In Microsoft Access 97
----------------------
You can't add or change a record because a related record is required
in table '<tablename>'.
In Microsoft Access 7.0
-----------------------
Can't add or change record. Referential integrity rules require a
related record in table '<tablename>'.
When you try to correct the error, the conflicting record does not exist.
CAUSE
The following events occurred:
- A record was deleted from a primary table in one database in the
replica set, while a record was added to a related table in another
database in the set.
- The relationship between the primary and related tables enforces
cascading deletes.
- The synchronization was started from the database replica where the
related table record was added.
RESOLUTION
If the relationship between primary and related tables enforces cascading
deletes, then the next time you synchronize the two databases, the error
will resolve itself.
REFERENCES
For more information about referential integrity and the relationships
between tables, search the Help Index for "referential integrity," or
ask the Microsoft Access 97 Office Assistant.
For more information about obtaining a copy of the Microsoft Jet Database
Replication white paper, which contains more information about replication
features in Microsoft Access, please see the following articles here in the
Microsoft Knowledge Base:
164553 ACC97: Jet 3.5 Replication White Paper Available in Download Center
138828 ACC95: Microsoft Jet Replication White Paper Available in Download Center
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kberrmsg kbprb kbusage KB158934 |
---|
|