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 from 07.02.00 to 07.02.01 broke my siteUpgrade from 07.02.00 to 07.02.01 broke my site
Previous
 
Next
New Post
2/5/2014 3:59 PM
 

Wow,

Worst experience ever with DNN after 9 years.  I upgraded my site and it died with the following sql exception:

26% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): Introducing FOREIGN KEY constraint 'FK_FolderPermission_Users' on table 'FolderPermission' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.

 

 Could not create constraint. See previous errors.

 

 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:98faf03e-77b4-4f3f-9b56-ede91781371a

 

 

 

 ALTER TABLE dbo.[FolderPermission]

 

 ADD CONSTRAINT FK_FolderPermission_Users FOREIGN KEY (UserId)

 

 REFERENCES dbo.[Users] (UserId)

 

 ON UPDATE NO ACTION

 

 ON DELETE CASCADE

 

 

Any suggestions would be greatly appreciated.

Site now in a broken state.  Hope my backups are good.

 
New Post
2/5/2014 5:56 PM
 
we added a foreign key referential constraint to that table in 7.2.1 - however your exception suggests that there was already one there. As there wasn't one in previous platform releases that suggests that a 3rd party module has added one there for it's own uses. Adding constraints or triggers to a core table is always a risky process and not something we support and it often leads to upgrade errors (e.g. a few modules years ago added triggers to the tabs or users tables to update data in their own tables and caused lots of upgrade issues - none of which are DNN's fault), so I suggest you identify and drop the existing cascading element and raise it with the vendor (you could drop it and then upgrades will work as expected, but your 3rd party module may stop working) .

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/5/2014 9:36 PM
 
please check foreign constraints (references) on your FolderPermission table and report here, which are there and which actions to be taken. you may use design tool in SSMS or script the table to get the FK constrains, already been applied.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade from 07.02.00 to 07.02.01 broke my siteUpgrade from 07.02.00 to 07.02.01 broke my site


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