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...error upgrading from 5.6.8 to 6.2.9error upgrading from 5.6.8 to 6.2.9
Previous
 
Next
New Post
3/13/2014 8:08 AM
 

Hi  

I get this error on upgrade:

System.Data.SqlClient.SqlException (0x80131904): Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

The statement has been terminated.

   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)

   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)

   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)

   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

ClientConnectionId:85d13a84-3d78-4ab9-a6d1-e9800ad6151b

 

 

 

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

The site runs but when I try to naviage to a page the pages don't load correctly as the url is something like mydomin/.aspx.

Any ideas how I can fix this?

thanks

Gus



"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
3/13/2014 10:25 AM
 
So, it seems that this query is trying to update the level and tabpath properties of the tabs entity.

Problem is I can't work out exactly what it's trying to do. Perhaps someone can explain? Maybe then I can fix the data or the sql.

But right now.. baffled..

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
3/13/2014 11:13 AM
 
I believe this issue is caused by the site having duplicate tab names in different locations.

For example, there are these pages:

http://www.mysite.com/MembersHome/Ene...
http://www.mysite.com/EnergyClimateCh...

There are different pages with the same name in different levels on the tree. The script breaks because it's not smart enough to see these as different tabs?

Any ideas how I can fix? Perhaps rename the pages before upgrade and then rename back?

will give that a try

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
3/13/2014 5:51 PM
 
make sure having unique tab names (for same parent).
there might be a missing unique index on the table

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/13/2014 6:39 PM
 
thanks for posting Sebastian

unfortunately that's not the case. There were some tabs with matching name but they had different parents.
I rolled back to the original backup and then renamed those tabs anyway and ran the upgrade.

I got the same error.

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...error upgrading from 5.6.8 to 6.2.9error upgrading from 5.6.8 to 6.2.9


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