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...upgrade 6.2.5 to DNN 7 upgrade errorupgrade 6.2.5 to DNN 7 upgrade error
Previous
 
Next
New Post
12/5/2012 10:16 PM
 

Hi

When i upgraded from 6.2.5 to 7 the upgrade script produced the following error during the upgrade process.

Does anyone know what might have the effect. The web site seems to be operating correctly.

System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'PortalID', table 'normanhurstunitingchurchorg.dbo.ModulePermission'; column does not allow nulls. UPDATE fails. 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.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:12186fde-c172-43a9-86a3-17ca6cab8224 ALTER TABLE dbo.ModulePermission ALTER COLUMN PortalID int NOT NULL

Thanks

Paul

 
New Post
12/14/2012 10:11 PM
 

I had the same sort of error when upgrading two sites from 6.2.5 to 7.0. Another site did not report the error.

Here is the error log for that part of the install.

12/15/2012 2:37:58 AM [INFO] DotNetNuke.Services.Upgrade.Upgrade Start UpgradeDNN:07.00.00
<br>12/15/2012 2:37:59 AM [INFO] DotNetNuke.Services.Upgrade.Upgrade Start UpgradeVersion:C:\HostingSpaces\forro\forrestministries.com\wwwroot\Providers\DataProviders\SqlDataProvider\07.00.00.SqlDataProvider
<br>12/15/2012 2:37:59 AM [INFO] DotNetNuke.Services.Upgrade.Upgrade Start ExecuteScript:C:\HostingSpaces\forro\forrestministries.com\wwwroot\Providers\DataProviders\SqlDataProvider\07.00.00.SqlDataProvider
<br>12/15/2012 2:38:06 AM [ERROR] DotNetNuke.Services.Upgrade.Upgrade System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'PortalID', table 'forrestministries.dbo.ModulePermission'; column does not allow nulls. UPDATE fails.
<br>The statement has been terminated.
<br>   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
<br>   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
<br>   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
<br>   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
<br>   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
<br>   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
<br>   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
<br>   at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
<br>ClientConnectionId:489366af-4a36-4ba9-9870-e4b95792eeb0
<br>
<br>ALTER TABLE dbo.ModulePermission
<br> ALTER COLUMN PortalID int NOT NULL
<br>
<br>
<br>12/15/2012 2:38:10 AM [ERROR] DotNetNuke.Services.Upgrade.Upgrade System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'PortalID', table 'forrestministries.dbo.ModulePermission'; column does not allow nulls. UPDATE fails.
<br>The statement has been terminated.
<br>   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
<br>   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
<br>   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
<br>   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
<br>   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
<br>   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
<br>   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
<br>   at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
<br>ClientConnectionId:489366af-4a36-4ba9-9870-e4b95792eeb0
<br>
<br>ALTER TABLE dbo.ModulePermission
<br> ALTER COLUMN PortalID int NOT NULL

Has anybody else had this error??????????????????????????

Sites seem to be working ok but I am concerned it may come back to haunt me.

In anticipation
Regards
Trevor


I had one once, but the wheels fell off !!!
 
New Post
12/14/2012 10:40 PM
 

Hi Paul,

Please read this post, it could be related: http://www.dotnetnuke.com/Resources/F...

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
12/15/2012 11:07 PM
 
Thanks Gilles for the reply.
I have left a note on the post to which you referred me.
It is now a dilemma about rolling back the upgrade and reinstalling or just leaving.
Again thanks for the response.
Paul
 
New Post
12/16/2012 5:12 AM
 

If you have hit this error - then you would be best of rolling back - the database update script has failed half way thru - as such your site will not be in a completed state.

However if you are comfortable with T-SQL you could look at re-running the rest of the update script manually - which would finish the updates and complete the processing.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...upgrade 6.2.5 to DNN 7 upgrade errorupgrade 6.2.5 to DNN 7 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