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 install fails during upgrade to 5.6.0Forum install fails during upgrade to 5.6.0
Previous
 
Next
New Post
12/31/2010 5:19 PM
 
I upgraded from 4.9.3 to 5.6.0 and the forums module failed to install properly. I have completly deleted Forums from the website several times.  I have manually deleted the tables, views and stored proceedures from the database and the directory from the file system.  I have ran Uninstall.SqlDataProvider.  None of the methods will allow me to reinstall.  I get the following error when I try to reinstall.

Error loading files from temporary folder - see below
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
Info End Sql execution: 03.00.00.SqlDataProvider file
Info Creating backup of previous version - 03.10.05.SqlDataProvider
Info Created - 03.10.05.SqlDataProvider
Info Executing 03.10.05.SqlDataProvider
Info Start Sql execution: 03.10.05.SqlDataProvider file
Info End Sql execution: 03.10.05.SqlDataProvider file
Info Creating backup of previous version - 04.03.00.SqlDataProvider
Info Created - 04.03.00.SqlDataProvider
Info Executing 04.03.00.SqlDataProvider
Info Start Sql execution: 04.03.00.SqlDataProvider file
Info End Sql execution: 04.03.00.SqlDataProvider file
Info Creating backup of previous version - 04.03.04.SqlDataProvider
Info Created - 04.03.04.SqlDataProvider
Info Executing 04.03.04.SqlDataProvider
Info Start Sql execution: 04.03.04.SqlDataProvider file
Info End Sql execution: 04.03.04.SqlDataProvider file
Info Creating backup of previous version - 04.04.03.SqlDataProvider
Info Created - 04.04.03.SqlDataProvider
Info Executing 04.04.03.SqlDataProvider
Info Start Sql execution: 04.04.03.SqlDataProvider file
Info End Sql execution: 04.04.03.SqlDataProvider file
Info Creating backup of previous version - 04.04.04.SqlDataProvider
Info Created - 04.04.04.SqlDataProvider
Info Executing 04.04.04.SqlDataProvider
Info Start Sql execution: 04.04.04.SqlDataProvider file
Info End Sql execution: 04.04.04.SqlDataProvider file
Info Creating backup of previous version - 04.05.00.SqlDataProvider
Info Created - 04.05.00.SqlDataProvider
Info Executing 04.05.00.SqlDataProvider
Info Start Sql execution: 04.05.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(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) DECLARE @default_constraint_name SYSNAME, @sql NVARCHAR(3750) IF EXISTS ( SELECT name FROM dbo.sysobjects WHERE parent_obj = OBJECT_ID(N'dbo.Forum_EmailQueue_TaskEmails') AND type = 'D' AND id = ( SELECT cdefault FROM syscolumns WHERE name = N'DateAdded' ) ) BEGIN SELECT @default_constraint_name = name FROM dbo.sysobjects WHERE parent_obj = OBJECT_ID(N'dbo.Forum_EmailQueue_TaskEmails') AND type = 'D' AND id = ( SELECT cdefault FROM syscolumns WHERE name = N'DateAdded' ) SET @sql = N'ALTER TABLE dbo.Forum_EmailQueue_TaskEmails DROP Constraint ' + @default_constraint_name EXEC sp_executesql @sql END System.Data.SqlClient.SqlException: Column already has a DEFAULT bound to it. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(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_EmailQueue_TaskEmails ADD CONSTRAINT DF_Forum_EmailQueue_TaskEmails_DateAdded DEFAULT (GETDATE()) FOR DateAdded
Info End Sql execution: 04.05.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
12/31/2010 6:20 PM
 
The problem is the following sub-query:
id = ( SELECT cdefault FROM syscolumns WHERE name = N'DateAdded' )
which will return multiple values if any other database tables include a DateAdded column. I believe that the XMod module is one of those that may raise this issue during install of Forum 05.00.00.

Please see the following post in the Forum module forum for discussion of the same issue and a possible work around:

http://www.dotnetnuke.com/Resources/F...

I noticed tonight that Chris, the Forum module team lead, has checked in to the project's CodePlex source changesets a modified 04.05.00.SqlDataProvider file which is supposed to correct this issue when Forum 05.00.01 is released. Rather than trying to modify the 04.05.00.SqlDataProvider file yourself, you might want to download the latest source changeset from

http://dnnforum.codeplex.com/SourceCo...

then extract the 04.05.00.SqlDataProvider file and use it to replace the file of the same name in the Forum_05.00.00_Install.zip package, and try the install again after removing all traces of the prior failed install from the database.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/31/2010 6:34 PM
 
Thanks for the asistance and info...

I actually found the temporary fix a few minutes after the post and now have forums reinstalled.

And yes... I have Xmod installed.

I came back to my post to update the fix :-)
 
New Post
3/11/2011 10:31 PM
 
My install error is a bit different. I'm upgrading from Forum 4.4.3 to 5.0.1. I tried to search for my particular error, but can't seem to find anything. Looking at this and the other mentioned posts, it doesn't address my problem. One of the other post that I read is to uninstall the existing forum module and delete the forum tables, procedures, etc, and do a reinstall. If I do that, wouldn't I lose all existing forum data? I would rather hang on to the current data if possible. Thx for any help in advance.







StartJob Starting Installation
Info Starting Installation - DNN_Forum
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version -



04.04.04.SqlDataProvider
Info Created - 04.04.04.SqlDataProvider
Info Executing 04.04.04.SqlDataProvider
Info Start Sql execution: 04.04.04.SqlDataProvider file
SQL Execution resulted in following Exceptions:



System.Data.SqlClient.SqlException: Column names in each table must be unique.



Column name 'EnableSelfNotifications' in table 'dbo.Forum_Users' is specified



more than once. at System.Data.SqlClient.SqlConnection. (SqlException



exception, Boolean breakConnection) at



System.Data.SqlClient.SqlInternalConnection. (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



[EnableSelfNotifications] [BIT] DEFAULT (1) NOT NULL



System.Data.SqlClient.SqlException: Column names in each table must be unique.



Column name 'EnableProfileWeb' in table 'dbo.Forum_Users' is specified more than



once. at System.Data.SqlClient.SqlConnection. (SqlException exception,



Boolean breakConnection) at



System.Data.SqlClient.SqlInternalConnection. (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



[EnableProfileWeb] [BIT] DEFAULT (1) NOT NULL



System.Data.SqlClient.SqlException: Column names in each table must be unique.



Column name 'EnableDefaultPostNotify' in table 'dbo.Forum_Users' is specified



more than once. at System.Data.SqlClient.SqlConnection. (SqlException



exception, Boolean breakConnection) at



System.Data.SqlClient.SqlInternalConnection. (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



[EnableDefaultPostNotify] [BIT] DEFAULT (1) NOT NULL



System.Data.SqlClient.SqlException: There is already an object named



'Forum_Members_GetByEmail' in the database. at



System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean



breakConnection) at



System.Data.SqlClient.SqlInternalConnection. (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 PROCEDURE dbo.[Forum_Members_GetByEmail] @PortalId INT,



@EmailToMatch NVARCHAR(256), @PageIndex INT, @PageSize INT AS BEGIN -- Set the



page bounds DECLARE @PageLowerBound INT DECLARE @PageUpperBound INT SET



@PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageSize - 1 +



@PageLowerBound -- Create a temp table TO store the select results CREATE TABLE



#PageIndexForUsers ( IndexId INT IDENTITY(0, 1) NOT NULL, UserId INT ) -- Insert



into our temp table IF ( @EmailToMatch IS NULL ) INSERT INTO #PageIndexForUsers



( UserId ) SELECT UserId FROM dbo.Forum_vw_ForumUsers WHERE Email IS NULL AND (



PortalId = @PortalId OR ( PortalId IS NULL AND @PortalId IS NULL ) ) ORDER BY



Email ELSE INSERT INTO #PageIndexForUsers ( UserId ) SELECT UserId FROM



dbo.Forum_vw_ForumUsers WHERE LOWER(Email) LIKE LOWER(@EmailToMatch) AND (



PortalId = @PortalId OR ( PortalId IS NULL AND @PortalId IS NULL ) ) ORDER BY



Email SELECT U.[UserID], [PostCount], [EnableDisplayInMemberList],



[EnableOnlineStatus], [EnablePM], [PortalID], [FirstName], [LastName], [Email],



[Username], [PostCount], ( SELECT COUNT(UserID) FROM dbo.Forum_vw_ForumUsers )



AS TotalRecords FROM dbo.Forum_vw_ForumUsers U INNER JOIN #PageIndexForUsers P



ON U.UserID = P.UserID WHERE ( PortalId = @PortalId OR ( PortalId IS NULL AND



@PortalId IS NULL ) ) AND P.IndexId >= @PageLowerBound AND P.IndexId <=



@PageUpperBound ORDER BY LOWER(U.Email) END System.Data.SqlClient.SqlException:



There is already an object named 'Forum_Members_GetOnline' in the database. at



System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean



breakConnection) at



System.Data.SqlClient.SqlInternalConnection. (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 PROCEDURE dbo.[Forum_Members_GetOnline] @PortalID INT AS



SELECT U.[UserID], [PostCount], [EnableDisplayInMemberList],



[EnableOnlineStatus], [EnablePM], U.[PortalID], [FirstName], [LastName],



[Email], [Username], [PostCount], ( SELECT COUNT(UserID) FROM



dbo.Forum_vw_ForumUsers ) AS TotalRecords FROM dbo.UsersOnline UO INNER JOIN



dbo.Forum_vw_ForumUsers U ON UO.UserID = U.UserID WHERE U.PortalID = @PortalID



 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumForum install fails during upgrade to 5.6.0Forum install fails during upgrade to 5.6.0


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