SQL Server Error Code – 21573 cannot add a logical record relationship

In this blog post, you’ll learn more about the SQL Server Error Code 21573 and the error message description that is shown

SQL Server Error Code

21573

SQL Server Error Description for the Code :21573

Cannot add a logical record relationship because the foreign key constraint ‘%s’ on table ‘%s’ is defined with the NOT FOR REPLICATION option. To add the logical record relationship, first drop the foreign key constraint, and then re-create it without the NOT FOR REPLICATION option.