Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
issue Deploying to Tables having Primary Key/ Foreign key relationships
siddin
Hi all,
I am deploying to multiple tables from a single DCR where each is replicant is inserted as a record. Tables have the following Parent child relationships
Table 1 has one primary key
Table 2 has a composite key as a primary key and a foreign key which is primary key of table 1
all is fine when try inserting, all the tables update succesfully, but when i delete a replicant and deploy i am getting the following error
[html]
DBD: *******************************************************
DBD: SQLException occured in TDbSchemaGroupCfg
DBD: Exception Message: [DALDEVDBCMS1]The DELETE statement conflicted with the REFERENCE constraint "FK_pl_content_type__pl_where_used_pl_content_type". The conflict occurred in database "CMS", table "dbo.pl_content_type__pl_where_used", column 'content_type_id'.
DBD: Vendor Error Code: 547
DBD: SQL state: 23000
DBD: *******************************************************
DBD:
DBD: *******STACK TRACE*************
DBD: ERROR:
java.sql.SQLException: [DALDEVDBCMS1]The DELETE statement conflicted with the REFERENCE constraint "FK_pl_content_type__pl_where_used_pl_content_type". The conflict occurred in database "CMS", table "dbo.pl_content_type__pl_where_used", column 'content_type_id'.
[/html]
I have tried using enforce-ri="yes" and ri-constraint-rule="
ON DELETE CASCADE " for foriegn key parent group element
Has anyone faced similar issue before?
Environment : Teamsite 6.7.2 and SQL Server 2005
Find more posts tagged with
Comments
There are no comments yet