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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...dnn4.5 upgrade error - CREATE UNIQUE INDEX IN FOLDERS tablednn4.5 upgrade error - CREATE UNIQUE INDEX IN FOLDERS table
Previous
 
Next
New Post
4/13/2007 10:40 AM
 

I upgraded from 4.4.1 to 4.5.0
During upgrade batch, the sql scripts log wrote an error and wrote it in 04.05.00.log:

System.Data.SqlClient.SqlException: CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 7.
Most significant primary key is '<NULL>'.
Could not create constraint. See previous errors.
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)

/* Add Constraint to FolderPath */
/********************************/

IF NOT EXISTS (select * from dbo.sysobjects where id = object_id(N'dbo.[IX_FolderPath]') and OBJECTPROPERTY(id, N'IsConstraint') = 1)
 BEGIN
  ALTER TABLE dbo.Folders ADD CONSTRAINT
   IX_FolderPath UNIQUE NONCLUSTERED
   (
   PortalID,
   FolderPath
   ) ON [PRIMARY]
 END


I query the Folders table and I see a lot of duplications in PortalID, FolderPath colums, like this (just an example):

FolderID PortalID FolderPath StorageLocation IsProtected IsCached LastUpdated
107 0 MyFolder/ 0 0 0  
274 0 MyFolder/ 0 0 0  
275 0 MyFolder/MySubfolder/ 0 0 0  
120 0 MyFolder/MySubfolder/ 0 0 0  

I do not modified core db or dnn source code.
Sometimes I use to upload files in Portals/0 folder via ftp. Is this the cause for this error?


PS: I noticed that in Folders table that some path contains double "/"  example: MyFolder/MySubfolder//
Is it normal?


Thanks

Luca


siti internet in provincia di cuneo torino savona asti
Siti e applicazioni Web
 
New Post
4/13/2007 1:44 PM
 

I have the same problem. Any news?


Dimitris Papadimitriou
 
New Post
4/14/2007 3:34 AM
 

I also noticed  a lot of <null> in PortalID field

Bye

Luca


siti internet in provincia di cuneo torino savona asti
Siti e applicazioni Web
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...dnn4.5 upgrade error - CREATE UNIQUE INDEX IN FOLDERS tablednn4.5 upgrade error - CREATE UNIQUE INDEX IN FOLDERS table


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