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 ...Error Deleting PortalError Deleting Portal
Previous
 
Next
New Post
12/14/2008 3:11 PM
 

I have experienced the same sort of problem with trying to get rid of old portals.  Poking around in the database the problem seems to be

  • deleting a portal removes all the entries from dbo.TabModules (and probably from all the dependent tables as well) so none of the tabs have any content
  • the deletion process fails to remove entries from dbo.Tabs
  • because there are entries in dbo.Tabs it is not possible to delete the entry for the portal in dbo.Portals

The work around seems to be to delete each entry in dbo.Tabs (I could only do this tab by tab in SQL Server Management Studio Express 2005).  Once there are no entries in dbo.Tabs the entry in dbo.Portals can be deleted.

It is possible that this will cause unforseen problems down the line so I do not recommend doing this.

From my perspective this seems to be a pretty basic bug, so I would be surprised if it will affect everyone.  It is possible that the problem is caused when the database has been upgraded many times, our current database has been in constant use since dnn v 3 and we are now up to 4.08.

 
New Post
12/15/2008 4:00 AM
 

I am assuming you are using an upgraded portal where a previous upgrade failed to add a unique constraint, e.g. to the tabs table. please review upgrade logs in Host Settings for verification. The only workaround is to delete blocking items manually from the database and delete portal entry manually as well.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/7/2009 12:29 PM
 

Would it be possible/practical to add in the constraints to the live database?

If so is there a reference that will show all the constraints that should (now) exist in the core table structure.

 
New Post
1/7/2009 1:21 PM
 

there should be a constraint, which has been added versions ago, but in some existing portals creation of the constraint failed and the user ignored upgrade warnings. And now there is a visible issue.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/4/2009 7:28 PM
 

I've just discovered I have this same problem in my 4.9.0 portal that has been upgraded since 4.3.x

Portals won't delete, giving the same error as the first post.

When I go into the tabs table and try and delete the tabs for the portal, one or more always refuses to be deleted. If I delete them one at a time, I can eventually delete them all. And then I can also finally delete the portal in Host, Portals.

Each time a tab won't delete, SQL Management Studio says "The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "FK_Tabs_Tabs". The conflict occured in table "dbo.Tabs", column 'ParentId'. I don't know what to do with that. I've looked around but can't see anything obvious.

I've clicked through several of the items on the logs dropdown list in Host settings, but nothing seems to come up - the messages say it means it would have run correctly. I wouldnt' know what to look for anyway.

How can this be fixed?

Rob

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error Deleting PortalError Deleting Portal


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