Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8863

Sql script error when upgrading from 8.2 to 9

$
0
0
Hi All,We are in the process of upgrading from Kentico 8.2.48 to Kentico 9. Everything is going okay except for two statements at the end of the SQL script. The sql script is having a problem deleting some things from the CMS_Document table and CMS_attachment table due to some foreign key constraints. I didn't see anything in the upgrading to Kentico 9 documentation that had to do with deleting attachments manually, and the log file doesn't show the IDs that are having problems.Has anyone had any problems upgrading from Kentico 8.2 to 9 like this before or have any suggestions? I've copied the errors below. ALTER TABLE [CMS_Tree] WITH CHECK ADD CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] FOREIGN KEY([NodeParentID]) REFERENCES [CMS_Tree] ([NodeID]) ALTER TABLE [CMS_Tree] CHECK CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] ALTER TABLE [CMS_Tree] DROP CONSTRAINT [FK_CMS_Tree_CMS_Tree] The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Attachment_AttachmentDocumentID_CMS_Document@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Attachment@, column 'AttachmentDocumentID'. The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Document_DocumentNodeID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Document@, column 'DocumentNodeID'. The ALTER TABLE statement conflicted with the FOREIGN KEY SAME TABLE constraint @FK_CMS_Tree_NodeParentID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Tree@, column 'NodeID'. ALTER TABLE [CMS_Tree] WITH CHECK ADD CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] FOREIGN KEY([NodeParentID]) REFERENCES [CMS_Tree] ([NodeID]) ALTER TABLE [CMS_Tree] CHECK CONSTRAINT [FK_CMS_Tree_NodeParentID_CMS_Tree] ALTER TABLE [CMS_Tree] DROP CONSTRAINT [FK_CMS_Tree_CMS_Tree] The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Attachment_AttachmentDocumentID_CMS_Document@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Attachment@, column 'AttachmentDocumentID'. The DELETE statement conflicted with the REFERENCE constraint @FK_CMS_Document_DocumentNodeID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Document@, column 'DocumentNodeID'. The ALTER TABLE statement conflicted with the FOREIGN KEY SAME TABLE constraint @FK_CMS_Tree_NodeParentID_CMS_Tree@. The conflict occurred in database @KenticoCMS8@, table @dbo.CMS_Tree@, column 'NodeID'. Any help would be greatly appreciated, anything really to point me in the right direction.Thanks

Viewing all articles
Browse latest Browse all 8863

Latest Images

Trending Articles



Latest Images