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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...SQL errors during upgrade from 5.6.1 to 5.6.2SQL errors during upgrade from 5.6.1 to 5.6.2
Previous
 
Next
New Post
4/20/2011 1:06 PM
 
I ran the upgrade from 5.6.1 to 5.6.2 on another DNN installation, and got a SQL error in the log. 
The site seems to be working -- is there a problem? 
What should I do?

This is what I see in the "05.06.02" log:

System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_Lists_ListName_Value_Text_ParentID'. Cannot insert duplicate key in object 'dbo.Lists'.
The statement has been terminated.
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)



/* DNN-13449 This procedure is no longer in use */
/*********************************************************/
if exists (select * from dbo.sysobjects where id = object_id(N'dbo.[Dashboard_GetServerErrors]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE dbo.[Dashboard_GetServerErrors]


/* DNN-14577 - Add Data Type Multiline Textbox for Profile Properties */
/*************************************************************************/
IF NOT EXISTS (SELECT value FROM dbo.Lists
WHERE ListName ='DataType' AND Value = 'Multi-line Text')
INSERT INTO dbo.Lists (ListName, Value, Text, DefinitionId, PortalId, SystemList)
VALUES ('DataType', 'Multi-line Text', 'DotNetNuke.UI.WebControls.MultiLineTextEditControl, DotNetNuke', -1, -1, 1)

/************************************************************/
/***** SqlDataProvider *****/
/************************************************************/
 
New Post
4/20/2011 3:34 PM
 
The second error would be related to the addition of the "Multi-line Text" editor control registration to the database table Lists for use in user profile form, etc.. It may have been that the control was registered previously or there is a data-integrity issue in the contents of the Lists table. If you can take a look at the Lists table (using a tool such as SQL Server Management Studio), you can verify if the entry is there and add it if necessary.
 
The following columns of the Lists table should have the below values:

ListName: DataType
Text: Multi-line Text
Value: DotNetNuke.UI.WebControls.MultiLineTextEditControl, DotNetNuke
ParentID: 0
Level: 0
SortOrder: 0
DefinitionIID: -1
Description: NULL
PortalID: -1
SystemList: 1

All of the other columns will have NULL values.

If the row in the Lists table is not the last but has the above values, it is likely that the control was already registered and you should be able to ignore this error. You can also ignore the first error.

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
4/22/2011 3:39 PM
 
This is what I see in that table:
DataType Unknown UseSystemType
DataType Text DotNetNuke.UI.WebControls.TextEditControl, DotNetNuke
DataType Integer DotNetNuke.UI.WebControls.IntegerEditControl, DotNetNuke
DataType TrueFalse DotNetNuke.UI.WebControls.TrueFalseEditControl, DotNetNuke
DataType TimeZone DotNetNuke.UI.WebControls.DNNTimeZoneEditControl, DotNetNuke
DataType Locale DotNetNuke.UI.WebControls.DNNLocaleEditControl, DotNetNuke
DataType Page DotNetNuke.UI.WebControls.DNNPageEditControl, DotNetNuke
DataType RichText DotNetNuke.UI.WebControls.DNNRichTextEditControl, DotNetNuke
DataType Country DotNetNuke.UI.WebControls.DNNCountryEditControl, DotNetNuke
DataType Region DotNetNuke.UI.WebControls.DNNRegionEditControl, DotNetNuke
DataType List DotNetNuke.UI.WebControls.DNNListEditControl, DotNetNuke
DataType Date DotNetNuke.UI.WebControls.DateEditControl, DotNetNuke
DataType DateTime DotNetNuke.UI.WebControls.DateTimeEditControl, DotNetNuke
 
New Post
4/22/2011 7:34 PM
 
That is very strange as the Multi-line Text control was not previously registered in the Lists table and the duplicate key error should not have occurred. I would suggest re-running this portion of the 05.06.02.SQLDataProvider script using the Host-->SQL control:

IF NOT EXISTS (SELECT value FROM {databaseOwner}{objectQualifier}Lists
    WHERE ListName ='DataType' AND Value = 'Multi-line Text')    
    INSERT INTO {databaseOwner}{objectQualifier}Lists (ListName, Value, Text, DefinitionId, PortalId, SystemList)
        VALUES ('DataType', 'Multi-line Text', 'DotNetNuke.UI.WebControls.MultiLineTextEditControl, DotNetNuke', -1, -1, 1)

Be sure to check the "Run As Script" checkbox before executing the script so that the {databaseOwner} and {objectQualifier} tokens are properly resolved for your particular installation
 
If the same error occurs I would check the unique index "IX_DNN_Lists_ListName_Value_Text_ParentID" on the Lists table. It should be a composite key dependent on four columns - ListName, Value, Text and ParentID.

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
4/23/2011 5:52 AM
 
the "IF not Exist" will fail, if you previously registered "multi-line Text" with different capitalization ("LIKE" would have been better here, my fault). If "Multi-line text" appears in the list of available profile property types in Admin :: Users, when adding a new property, you may safely ignore the error.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...SQL errors during upgrade from 5.6.1 to 5.6.2SQL errors during upgrade from 5.6.1 to 5.6.2


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