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 ...Upgrade to 06.02.03 FailingUpgrade to 06.02.03 Failing
Previous
 
Next
New Post
9/24/2012 3:26 PM
 

I have attempted to upgrade from 6.1.5 to 6.2.3 several times.  Always with the following errors:

 


within the 06/02/01 06.02.01. Log.resources file, I find the following;:

 System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'Level', table 'dotnetnukevwc.dbo.Tabs'; column does not allow nulls. UPDATE fails.
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)



WITH RecursiveTabs (TabID, Level, TabPath)
    AS    
    (
        SELECT
            TabID,
            0 AS Level,
            CAST('//' + dbo.RemoveStringCharacters(TabName, '&? ./''-#') AS NVARCHAR(255)) AS TabPath
        FROM dbo.Tabs
        WHERE ParentId IS Null
      
        UNION ALL
      
        SELECT
            T.TabID,
            R.Level + 1,
            CAST(R.TabPath + '//' + dbo.RemoveStringCharacters(TabName, '&? ./''-#') AS NVARCHAR(255))
        FROM dbo.Tabs T
        INNER JOIN RecursiveTabs R ON T.ParentId = R.TabID
    )
    
    UPDATE dbo.Tabs SET Level = R.LEVEL, TabPath = R.TabPath
    FROM dbo.Tabs T
    LEFT JOIN RecursiveTabs R ON R.TabID = T.tabID

 

When I open the website, I see that any reference to a pages always has a blank name, with the .apsx file type appended.

when I look at the Tabs table, the URL is blank.

How can this be corrected and what is wrong.

 

 


Regards
Hans
 
New Post
9/24/2012 7:04 PM
 

this is caused by a stupid error in the upgrade script. Please run:

WITH RecursiveTabs (TabID, Level, TabPath)
     AS   
     (
         SELECT
            TabID,
             0 AS Level,
             CAST('//' + dbo.RemoveStringCharacters(TabName, '&? ./''-#') AS NVARCHAR(255)) AS TabPath
         FROM dbo.Tabs
         WHERE ParentId IS Null
      
         UNION ALL
      
         SELECT
            T.TabID,
             R.Level + 1,
             CAST(R.TabPath + '//' + dbo.RemoveStringCharacters(TabName, '&? ./''-#') AS NVARCHAR(255))
         FROM dbo.Tabs T
         INNER JOIN RecursiveTabs R ON T.ParentId = R.TabID
     )
    
     UPDATE dbo.Tabs SET Level = IsNull(R.LEVEL,0), TabPath = R.TabPath
     FROM dbo.Tabs T
     LEFT JOIN RecursiveTabs R ON R.TabID = T.tabID


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/25/2012 7:41 PM
 

Sebastian,

 This worked!!  Thank you .

I also found that several entries on the Tabs table were invalid in that they appear to have been aborted during the update cycle. . 

Found this condition by relaxing the NULL constraint on the TabPath column and running the procedure. Observed the NULL entry in the TabPath column.  I then deleted these rows from the Tabs table.

After that all went well.  Thanks....

 


Regards
Hans
 
New Post
9/25/2012 8:15 PM
 
Hans, I am glad that I was able to provide some help. Have fun using DNN :-))

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/25/2012 10:26 PM
 
Hans, Sebastian... wow - well done and thank you. I came to the same impasse and was clueless. It's now resolved.

I did have to change the null constraint before the script would run, but this was simple
ALTER TABLE Tabs
ALTER COLUMN TabPath NVARCHAR(255) NULL

Thanks both.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade to 06.02.03 FailingUpgrade to 06.02.03 Failing


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