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 ForumsForumForumLists Error Fix - Advanced Hosts Only! ErrorLists Error Fix - Advanced Hosts Only! Error
Previous
 
Next
New Post
7/23/2009 10:34 PM
 

When I try to run the script in the pinned thread "Lists Error Fix - Advanced Hosts Only!" I get this error:

 

System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. Violation of PRIMARY KEY constraint 'PK_Lists'. Cannot insert duplicate key in object 'dbo.Lists'. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. The statement has been terminated. 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 @ModuleDefID int SELECT @ModuleDefID = ModuleDefID FROM dbo.ModuleDefinitions WHERE FriendlyName = 'Forum' IF @ModuleDefID > 0 BEGIN DELETE FROM dbo.Lists WHERE DefinitionID = @ModuleDefId END DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'ThreadStatus' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'Emailformat' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'GroupView' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'ForumMemberName' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'ForumThreadRate' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'TrackingDuration' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'DisplayPosterLocation' DELETE FROM dbo.Lists WHERE DefinitionID = 0 AND ListName = 'ForumType' INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ThreadStatus', '0', 'NoneSpecified', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ThreadStatus', '1', 'Unanswered', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ThreadStatus', '2', 'Answered', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ThreadStatus', '3', 'Informative', 0, 0, 4, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('Emailformat', '0', 'Text', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('Emailformat', '1', 'HTML', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('GroupView', '0', 'AllExpanded', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('GroupView', '-1', 'AllCollapsed', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('GroupView', '1', 'AsLastViewed', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumMemberName', '0', 'Username', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumMemberName', '1', 'DisplayName', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '0', 'Rate0', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '1', 'Rate1', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '2', 'Rate2', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '3', 'Rate3', 0, 0, 4, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '4', 'Rate4', 0, 0, 5, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '5', 'Rate5', 0, 0, 6, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '6', 'Rate6', 0, 0, 7, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '7', 'Rate7', 0, 0, 8, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '8', 'Rate8', 0, 0, 9, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '9', 'Rate9', 0, 0, 10, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumThreadRate', '10', 'Rate10', 0, 0, 11, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '0', 'Today', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '3', 'PastThreeDays', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '7', 'PastWeek', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '14', 'PastTwoWeek', 0, 0, 4, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '30', 'PastMonth', 0, 0, 5, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '92', 'PastThreeMonth', 0, 0, 6, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '365', 'PastYear', 0, 0, 7, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '-1', 'LastVisit', 0, 0, 8, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('TrackingDuration', '3650', 'AllDays', 0, 0, 9, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('DisplayPosterLocation', '0', 'None', 0, 0, 0, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('DisplayPosterLocation', '1', 'ToAdmin', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('DisplayPosterLocation', '2', 'ToAll', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumType', '0', 'Normal', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumType', '1', 'Notification', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumType', '2', 'Link', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '0', 'PublicModerated', 0, 0, 1, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '1', 'PublicModeratedPostRestricted', 0, 0, 2, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '2', 'PublicUnModerated', 0, 0, 3, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '3', 'PublicUnModeratedPostRestricted', 0, 0, 4, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '4', 'PrivateModerated', 0, 0, 5, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '5', 'PrivateModeratedPostRestricted', 0, 0, 6, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '6', 'PrivateUnModerated', 0, 0, 7, @ModuleDefId) INSERT INTO dbo.Lists (ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID) VALUES ('ForumBehavior', '7', 'PrivateUnModeratedPostRestricted', 0, 0, 8, @ModuleDefId)

 

am I doing something worng? also I have SQL server access is there a SQL script that I can run on the server?

 

Thanks in advance

Melih

 
New Post
7/24/2009 2:07 PM
 

It looks like a install issue on your forum.  Can it be it is any of the DNN 5 versions? There I have sean it on some beta testings.  Solution is then uninstall the module, check the database tables, views, spocs and function and delete all forum releated artifacts.  Then restart the application on DNN and retry the installation.  Check if any issues are logged.

If not run the List fixes.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumLists Error Fix - Advanced Hosts Only! ErrorLists Error Fix - Advanced Hosts Only! Error


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