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...Upgraded 4.9.5 to 5.5.0 with one error - fix failsUpgraded 4.9.5 to 5.5.0 with one error - fix fails
Previous
 
Next
New Post
8/19/2010 11:24 AM
 
I just upgraded 4.9.5 to the 5.5.0 using the Upgrade download. It ran quickly with the following error. I clipped the recommended script from the log file & ran it on the SQL page, But that failed as displayed at the end of this post.

?? Should I restore 4.9.5 or is this something I can work thru?

Current Assembly Version: 05.05.00
Current Database Version: 04.09.05



Upgrade Status Report
00:00:00.109 - Upgrading to Version: 05.05.00
00:00:00.171 - Executing Script: 05.00.00.SqlDataProvider Success
00:00:07.078 - Executing Script: 05.00.01.SqlDataProvider Success
00:00:07.734 - Executing Script: 05.01.00.SqlDataProvider Success
00:00:15.875 - Executing Script: 05.01.01.SqlDataProvider Success
00:00:16.546 - Executing Script: 05.01.02.SqlDataProvider Success
00:00:16.546 - Executing Script: 05.01.03.SqlDataProvider Success
00:00:16.703 - Executing Script: 05.01.04.SqlDataProvider Success
00:00:16.718 - Executing Script: 05.02.00.SqlDataProvider Success
00:00:17.906 - Executing Script: 05.02.01.SqlDataProvider Success
00:00:18.031 - Executing Script: 05.02.02.SqlDataProvider Success
00:00:18.062 - Executing Script: 05.02.03.SqlDataProvider Success
00:00:18.093 - Executing Script: 05.03.00.SqlDataProvider Success
00:00:18.812 - Executing Script: 05.03.01.SqlDataProvider Success
00:00:18.828 - Executing Script: 05.04.00.SqlDataProvider Success
00:00:19.546 - Executing Script: 05.04.01.SqlDataProvider Success
00:00:19.578 - Executing Script: 05.04.02.SqlDataProvider Success
00:00:19.640 - Executing Script: 05.04.03.SqlDataProvider Success
00:00:19.687 - Executing Script: 05.04.04.SqlDataProvider Success
00:00:19.703 - Executing Script: 05.05.00.SqlDataProvider Error! (see 05.05.00.log.resources for more information)
00:00:21.671 - Executing Application Upgrades: 05.00.00

----- Script in the the Log File ----

/* script to fix issue with errorneous administratorroleid values*/

DECLARE @PortalID int
DECLARE @AdministratorRoleId int

--Iterate through each portal
DECLARE Portals_Cursor CURSOR FOR
SELECT PortalID,AdministratorRoleId
FROM dbo.DNN4_Portals

OPEN Portals_Cursor
--get first
FETCH NEXT FROM Portals_Cursor
into @PortalID,@AdministratorRoleId
WHILE @@FETCH_STATUS = 0
BEGIN
if @AdministratorRoleId=-1 or @AdministratorRoleId not in (select roleid from dbo.DNN4_userroles as ur inner join dbo.DNN4_userportals as up on ur.userid=up.userid where up.portalid=@portalid)

update portals set AdministratorRoleId =
(select roleid from dbo.DNN4_Roles as r where
r.PortalID =dbo.DNN4_Portals.PortalID and RoleName = 'Administrators' and dbo.DNN4_Portals.portalid=@portalid) where portalid=@portalid

FETCH NEXT FROM Portals_Cursor
into @PortalID, @AdministratorRoleId

END
CLOSE Portals_Cursor

---- Error from running this script on the SQL page ---

System.Data.SqlClient.SqlException: The multi-part identifier "dbo.DNN4_Portals.PortalID" could not be bound. The multi-part identifier "dbo.DNN4_Portals.portalid" could not be bound. 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 ConnectionString, String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String ConnectionString, String Script) /* script to fix issue with errorneous administratorroleid values*/ DECLARE @PortalID int DECLARE @AdministratorRoleId int --Iterate through each portal DECLARE Portals_Cursor CURSOR FOR SELECT PortalID,AdministratorRoleId FROM dbo.DNN4_Portals OPEN Portals_Cursor --get first FETCH NEXT FROM Portals_Cursor into @PortalID,@AdministratorRoleId WHILE @@FETCH_STATUS = 0 BEGIN if @AdministratorRoleId=-1 or @AdministratorRoleId not in (select roleid from dbo.DNN4_userroles as ur inner join dbo.DNN4_userportals as up on ur.userid=up.userid where up.portalid=@portalid) update portals set AdministratorRoleId = (select roleid from dbo.DNN4_Roles as r where r.PortalID =dbo.DNN4_Portals.PortalID and RoleName = 'Administrators' and dbo.DNN4_Portals.portalid=@portalid) where portalid=@portalid FETCH NEXT FROM Portals_Cursor into @PortalID, @AdministratorRoleId END CLOSE Portals_Cursor
 
New Post
8/19/2010 8:30 PM
 
I upgraded from 5.4.4 to 5.5.0 and got the same error. 
 
New Post
8/23/2010 3:50 PM
 

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.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   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)



/* Fix incorrect culture codes assigned pre-5.5 */
/************************************************/

UPDATE dbo.Tabs
 SET CultureCode = NULL

 
New Post
8/23/2010 4:22 PM
 
Bill, this is definitely a different error, please specify, where it occurred. Gary, are you using a case sensitive collation in your server or database?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/23/2010 4:31 PM
 
I got the same error as Bill B in one upgrade 5.4 to 5.5
logged in 5.5 log
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgraded 4.9.5 to 5.5.0 with one error - fix failsUpgraded 4.9.5 to 5.5.0 with one error - fix fails


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