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...Administration ...Administration ...Upgrade issue:  6.2.9 to 7.3.3Upgrade issue: 6.2.9 to 7.3.3
Previous
 
Next
New Post
4/19/2015 1:22 PM
 

I'll appreciate any help that anyone can give relative to this error ...

I attempted to upgrade a 6.3.9 site to 7.3.3, with the following error:

 Executing Script:07.00.00.SqlDataProvider Error! (see 07.00.00.log.resources for more information)

The log.resources file contains this

System.Data.SqlClient.SqlException (0x80131904): The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The DELETE statement conflicted with the REFERENCE constraint "FK_PackageAssemblies_PackageAssemblies". The conflict occurred in database "mydatabase", table "dbo.Assemblies", column 'PackageID'.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

The statement has been terminated.

   at System.Data.SqlClient.SqlConnection. (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, Boolean asyncWrite)

   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:36951041-0a64-4cef-bcda-51f8f16ef889


That error is essentially repeated for:

Application Upgrades : 07.00.00 Error!

Conversion of old Folders Completed. Total Converted: 171 Error!

Application Upgrades : 07.01.01 Error!

Application Upgrades : 07.02.00 Error!

Application Upgrades : 07.02.02 Error!




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
4/19/2015 4:01 PM
 

Joseph,
please execute the following statement from Host > SQL (after restore of the previous version/prior to the upgrade):

ALTER TABLE {databaseOwner}[{objectQualifier}Assemblies] 
DROP CONSTRAINT FK_{objectQualifier}PackageAssemblies_{objectQualifier}PackageAssemblies;
GO
ALTER TABLE {databaseOwner}[{objectQualifier}Assemblies]
ADD CONSTRAINT FK_{objectQualifier}PackageAssemblies_{objectQualifier}PackageAssemblies
FOREIGN KEY (PackageID) REFERENCES {databaseOwner}[{objectQualifier}Packages] (PackageID)
ON DELETE CASCADE;
GO

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/19/2015 4:16 PM
 
Thanks!

It turns out that there were a dozen or so such constraints. I tracked them all down, fixed them, and the upgrade proceeded smoothly.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
4/19/2015 6:19 PM
 
this sounds strange like someone modified references, maybe due to a manual backup/restore.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/25/2015 3:06 PM
 
I'm back with another issue.

I fixed the constraint issue, and upgraded from 6.2.9 to 7.3.3.

Now there's a problem trying to switch to and from Edit mode. I get javascript errors like this:

POST http://dnndev.me/DesktopMod... 401 (Unauthorized)jquery.js?cdv=132:8526 jQuery.ajaxTransport.sendjquery.js?cdv=132:7978 jQuery.extend.ajaxdnn.controlBar.js?cdv=132:1598 (anonymous function)jquery.js?cdv=132:3074 jQuery.event.dispatchjquery.js?cdv=132:2750 jQuery.event.add.elemData.handle


Any ideas where this is coming from?



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upgrade issue:  6.2.9 to 7.3.3Upgrade issue: 6.2.9 to 7.3.3


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