Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumForum v.3.20.8 Upgrade issueForum v.3.20.8 Upgrade issue
Previous
 
Next
New Post
5/25/2016 3:42 PM
 

Hello!

I have 1 issue, that repeat from one version DNN to another new. 

I can't upgrade forum module from 3.20.8 to some newer version.

I try to upgrade forum when upgrade DNN to 4.x, then 5.x - not successfully.

Now I work with DNN 6.2.9. I try to upgrade forum from 3.20.8 to 5.0.0. and get errors again.

Can You give some advise in this problem. Upgrade log here:

================================================

StartJob Starting Installation

Info Starting Installation - DNN_Forum

Info Starting Installation - Script

Info Begin Sql execution

Info Creating backup of previous version - 03.00.00.SqlDataProvider

Info Created - 03.00.00.SqlDataProvider

Info Executing 03.00.00.SqlDataProvider

Info Start Sql execution: 03.00.00.SqlDataProvider file

Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Forums' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Forums') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Forums System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Posts' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Posts') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Posts System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Threads' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Threads') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Threads System.Data.SqlClient.SqlException: Could not drop object 'dbo.Forum_Users' because it is referenced by a FOREIGN KEY constraint. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'Forum_Users') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table dbo.Forum_Users System.Data.SqlClient.SqlException: There is already an object named 'Forum_Forums' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE TABLE dbo.Forum_Forums ( [ForumID] [int] IDENTITY (1, 1) NOT NULL , [GroupID] [int] NOT NULL , [IsActive] [bit] NOT NULL , [ParentID] [int] NOT NULL , [Name] [nvarchar] (255) NOT NULL , [Description] [nvarchar] (2048) NULL , [CreatedDate] [datetime] NULL , [CreatedByUser] [int] NULL , [UpdatedByUser] [int] NULL , [UpdatedDate] [datetime] NULL , [IsModerated] [bit] NULL , [DaysToView] [int] NULL , [SortOrder] [int] NULL , [TotalPosts] [int] NULL , [TotalThreads] [int] NULL , [EnablePostStatistics] [bit] NULL , [EnableAutoDelete] [bit] NULL , [AutoDeleteThreshold] [int] NULL , [MostRecentPostID] [int] NULL , [MostRecentThreadID] [int] NULL , [MostRecentPostAuthorID] [int] NULL , [MostRecentPostDate] [datetime] NULL , [PostsToModerate] [int] NULL , [ForumType] [int] NULL , [IsIntegrated] [bit] NULL , [IntegratedModuleID] [int] NULL , [IntegratedObjects] [nvarchar] (255) NULL , [IsPrivate] [bit] NULL , [AuthorizedRoles] [nvarchar] (255) NULL , [AuthorizedEditRoles] [nvarchar] (255) NULL ) ON [PRIMARY] System.Data.SqlClient.SqlException: There is already an object named 'Forum_Posts' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE TABLE dbo.Forum_Posts ( [PostID] [int] IDENTITY (1, 1) NOT NULL , [ParentPostID] [int] NOT NULL , [UserID] [int] NOT NULL , [RemoteAddr] [nvarchar] (100) NULL , [Notify] [bit] NULL , [Subject] [nvarchar] (255) NOT NULL , [Body] [ntext] NULL , [CreatedByUser] [int] NULL , [CreatedDate] [datetime] NULL , [ThreadID] [int] NULL , [PostLevel] [int] NULL , [UpdatedDate] [datetime] NULL , [UpdatedByUser] [int] NULL , [IsApproved] [bit] NULL , [IsLocked] [bit] NULL , [IsClosed] [bit] NULL , [MediaURL] [nvarchar] (255) NULL , [MediaNAV] [nvarchar] (255) NULL , [Attachments] [nvarchar] (255) NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] System.Data.SqlClient.SqlException: There is already an object named 'Forum_Threads' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE TABLE dbo.Forum_Threads ( [ThreadID] [int] NOT NULL , [ForumID] [int] NOT NULL , [Views] [int] NULL , [LastPostedPostID] [int] NULL , [Replies] [int] NULL , [IsPinned] [bit] NULL , [PinnedDate] [datetime] NULL , [Image] [nvarchar] (255) NULL , [ObjectTypeCode] [int] NULL , [ObjectID] [char] (10) NULL ) ON [PRIMARY] System.Data.SqlClient.SqlException: There is already an object named 'Forum_Users' in the database. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE TABLE dbo.Forum_Users ( [UserID] [int] NOT NULL , [UseRichText] [bit] NULL , [URL] [nvarchar] (128) NULL , [Signature] [nvarchar] (1024) NULL , [TimeZone] [int] NULL , [Occupation] [nvarchar] (255) NULL , [Interests] [nvarchar] (255) NULL , [MSN] [nvarchar] (128) NULL , [Yahoo] [nvarchar] (128) NULL , [AIM] [nvarchar] (128) NULL , [ICQ] [nvarchar] (128) NULL , [Skin] [nvarchar] (255) NULL , [UserAvatar] [bit] NULL , [Avatar] [nvarchar] (255) NULL , [AdditionalAvatars] [nvarchar] (255) NULL , [PostCount] [int] NULL , [LastActivity] [datetime] NULL , [LastForumsView] [datetime] NULL , [LastThreadView] [datetime] NULL , [FlatView] [bit] NULL , [IsTrusted] [bit] NULL , [EnableThreadTracking] [bit] NULL , [EnableDisplayUnreadThreadsOnly] [bit] NULL , [EnableDisplayInMemberList] [bit] NULL , [EnablePrivateMessages] [bit] NULL , [EnableOnlineStatus] [bit] NULL , [ThreadsPerPage] [int] NULL , [PostsPerPage] [int] NULL , [WhatsNewScrollDirection] [int] NULL , [WhatsNewNumberOfThread] [int] NULL , [WhatsNewScrollDelay] [int] NULL , [WhatsNewScrollAmount] [int] NULL , [WhatsNewTrackingType] [int] NULL , [WhatsNewTrackingDuration] [int] NULL , [WhatsNewTemplate] [nvarchar] (255) NULL , [DefaultForumID] [int] NULL , [CollapseGroups] [nvarchar] (255) NULL ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Forums' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Forums WITH NOCHECK ADD CONSTRAINT PK_Forum_Forums PRIMARY KEY CLUSTERED ( [ForumID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Posts' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Posts WITH NOCHECK ADD CONSTRAINT PK_Forum_Posts PRIMARY KEY CLUSTERED ( [PostID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Threads' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Threads WITH NOCHECK ADD CONSTRAINT PK_Forum_Threads PRIMARY KEY CLUSTERED ( [ThreadID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Table 'Forum_Users' already has a primary key defined on it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Users WITH NOCHECK ADD CONSTRAINT PK_Forum_Users PRIMARY KEY CLUSTERED ( [UserID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Forums WITH NOCHECK ADD CONSTRAINT DF_Forum_Forums_ParentID DEFAULT (0) FOR [GroupID], CONSTRAINT DF_Forum_Forums_IsActive DEFAULT (1) FOR [IsActive], CONSTRAINT DF_Forum_Forums_ParentID_1 DEFAULT (0) FOR [ParentID], CONSTRAINT DF_Forum_Forums_DateCreated DEFAULT (getdate()) FOR [CreatedDate], CONSTRAINT DF_Forum_Forums_IsModerated DEFAULT (0) FOR [IsModerated], CONSTRAINT DF_Forum_Forums_DaysToView DEFAULT (0) FOR [DaysToView], CONSTRAINT DF_Forum_Forums_SortOrder DEFAULT (0) FOR [SortOrder], CONSTRAINT DF_Forum_Forums_TotalPosts DEFAULT (0) FOR [TotalPosts], CONSTRAINT DF_Forum_Forums_TotalThreads DEFAULT (0) FOR [TotalThreads], CONSTRAINT DF_Forum_Forums_EnablePostStatistics DEFAULT (0) FOR [EnablePostStatistics], CONSTRAINT DF_Forum_Forums_EnableAutoDelete DEFAULT (0) FOR [EnableAutoDelete], CONSTRAINT DF_Forum_Forums_AutoDeleteThreshold DEFAULT (90) FOR [AutoDeleteThreshold], CONSTRAINT DF_Forum_Forums_MostRecentPostID DEFAULT (0) FOR [MostRecentPostID], CONSTRAINT DF_Forum_Forums_MostRecentThreadID DEFAULT (0) FOR [MostRecentThreadID], CONSTRAINT DF_Forum_Forums_MostRecentPostAuthorID DEFAULT (0) FOR [MostRecentPostAuthorID], CONSTRAINT DF_Forum_Forums_MostRecentPostDate DEFAULT (getdate()) FOR [MostRecentPostDate], CONSTRAINT DF_Forum_Forums_PostsToModerate DEFAULT (0) FOR [PostsToModerate], CONSTRAINT DF_Forum_Forums_ForumType DEFAULT (0) FOR [ForumType], CONSTRAINT DF_Forum_Forums_IsIntergrated DEFAULT (0) FOR [IsIntegrated], CONSTRAINT DF_Forum_Forums_IntergratedGallery DEFAULT (0) FOR [IntegratedModuleID], CONSTRAINT DF_Forum_Forums_IsPrivate DEFAULT (0) FOR [IsPrivate], CONSTRAINT IX_Forum_Forums UNIQUE NONCLUSTERED ( [ForumID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Posts WITH NOCHECK ADD CONSTRAINT DF_Posts_PostLevel DEFAULT (0) FOR [PostLevel], CONSTRAINT DF_Forum_Posts_IsApproved DEFAULT (1) FOR [IsApproved], CONSTRAINT DF_Forum_Posts_IsLocked DEFAULT (0) FOR [IsLocked], CONSTRAINT DF_Forum_Posts_IsClosed DEFAULT (0) FOR [IsClosed], CONSTRAINT IX_Forum_Posts UNIQUE NONCLUSTERED ( [PostID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Threads WITH NOCHECK ADD CONSTRAINT DF_Forum_Threads_Replies DEFAULT (0) FOR [ForumID], CONSTRAINT DF_Forum_Threads_Views DEFAULT (0) FOR [Views], CONSTRAINT DF_Threads_LastPostedPostID DEFAULT (0) FOR [LastPostedPostID], CONSTRAINT DF_Threads_ForumID DEFAULT (0) FOR [Replies], CONSTRAINT DF_Forum_Threads_IsPinned DEFAULT (0) FOR [IsPinned], CONSTRAINT DF_Forum_Threads_PinnedDate DEFAULT (getdate()) FOR [PinnedDate], CONSTRAINT IX_Forum_Threads UNIQUE NONCLUSTERED ( [ThreadID] ) ON [PRIMARY] System.Data.SqlClient.SqlException: Column 'UseRichText' in table 'Forum_Users' is invalid for creating a default constraint. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Users WITH NOCHECK ADD CONSTRAINT DF_Forum_Users_UseRichText DEFAULT (1) FOR [UseRichText], CONSTRAINT DF_Forum_Users_TimeZone DEFAULT (0) FOR [TimeZone], CONSTRAINT DF_Forum_Users_UseAvatar DEFAULT (0) FOR [UserAvatar], CONSTRAINT DF_Forum_Users_PostCount DEFAULT (0) FOR [PostCount], CONSTRAINT DF_Forum_Users_LastActivity DEFAULT (1 / 1 / 2001) FOR [LastActivity], CONSTRAINT DF_Forum_Users_LastForumsView DEFAULT (1 / 1 / 2001) FOR [LastForumsView], CONSTRAINT DF_Forum_Users_LastThreadView DEFAULT (1 / 1 / 2001) FOR [LastThreadView], CONSTRAINT DF_Forum_Users_FlatView DEFAULT (1) FOR [FlatView], CONSTRAINT DF_Forum_Users_IsTrusted DEFAULT (0) FOR [IsTrusted], CONSTRAINT DF_Forum_Users_EnableThreadTracking DEFAULT (1) FOR [EnableThreadTracking], CONSTRAINT DF_Forum_Users_EnableDisplayUnreadThreadsOnly DEFAULT (1) FOR [EnableDisplayUnreadThreadsOnly], CONSTRAINT DF_Forum_Users_EnableDisplayInMemberList DEFAULT (1) FOR [EnableDisplayInMemberList], CONSTRAINT DF_Forum_Users_EnablePrivateMessages DEFAULT (1) FOR [EnablePrivateMessages], CONSTRAINT DF_Forum_Users_EnableOnlineStatus DEFAULT (1) FOR [EnableOnlineStatus] System.Data.SqlClient.SqlException: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Forum_Forums_Forum_Groups". The conflict occurred in database "DotNetNuke", table "dbo.Forum_Groups", column 'GroupID'. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) ALTER TABLE dbo.Forum_Forums ADD CONSTRAINT FK_Forum_Forums_Forum_Groups FOREIGN KEY ( [GroupID] ) REFERENCES dbo.Forum_Groups ( [GroupID] ) ON DELETE CASCADE NOT FOR REPLICATION

Info End Sql execution: 03.00.00.SqlDataProvider file

Info Finished Sql execution

Failure Installation Failed - Script

Info Installation Failed - DNN_Forum

Info Deleted temporary install folder

EndJob Installation Failed

 
New Post
5/26/2016 12:59 AM
 

Are you trying to upgrade or install over a database where forum tables already exists and in DNN side forum module not?

 
New Post
5/26/2016 7:52 AM
 

Hello!

No, I try upgrade DNN with installed Forum module v.03.20.8 and with working database and 1 site.

Thank You!

 
New Post
5/27/2016 12:54 AM
 

See table Forum_Groups and values in column GroupID. Are all of those found in Forum_Forums GroupID column?

 
New Post
5/27/2016 1:23 PM
 
03.00.00.SqlDataProvider file should not be called when upgrading from 3.20.08 to a later version.
does the correct module version show up in Host > Extensions prior to the upgrade?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumForum v.3.20.8 Upgrade issueForum v.3.20.8 Upgrade issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out