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

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...DNN 7.0.0.1065 upgrade errorDNN 7.0.0.1065 upgrade error
Previous
 
Next
New Post
11/12/2012 12:28 AM
 

Just for fun I upgraded a test instance of my live portal system to the DotNetNuke_Community_7.0.0.1065_Upgrade release and although everything's a total mess, it only returned one error during the upgrade. So I'm reporting that error here in case something needs to be fixed. This was upgraded from 6.2.4, which itself has been upgraded since about 4.3 or so.

Regards
Rob

The upgrade log says this:

System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'PortalID', table 'testsystem.dbo.ModulePermission'; 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()
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.ExecuteScriptInternal(String connectionString, String script)

ALTER TABLE dbo.ModulePermission
ALTER COLUMN PortalID int NOT NULL

 

 
New Post
11/30/2012 12:30 PM
 

The error happens when Host user apply permissions to modules on Host pages

To resolve this issue, run the below below script to drop permissions from Host modules before upgrading to DNN 7 from Host>SQL 

DELETE FROM {databaseOwner}{objectQualifier}ModulePermission WHERE EXISTS (SELECT ModuleId FROM {databaseOwner}{objectQualifier}Modules WHERE (PortalID IS NULL) AND ({databaseOwner}{objectQualifier}ModulePermission.ModuleID = {databaseOwner}{objectQualifier}Modules.ModuleID))
 
New Post
12/15/2012 11:05 PM
 
Hi,
this looks like the error I posted at http://www.dotnetnuke.com/Resources/F...
The question for me becomes should I restore the old site, then run the script above and then upgrade, or as the site seems to be running ok, leave it?
What might have happened or not happened when this part of the upgrade script stopped?
Thanks
Paul
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...DNN 7.0.0.1065 upgrade errorDNN 7.0.0.1065 upgrade error


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