Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Cant delete page document View modes: 
User avatar
Member
Member
tspring-allegra - 7/12/2010 7:04:20 AM
   
Cant delete page document
Hi

I’ve got a problem with a page document on a site that I can’t seam to delete. In the CMSDesk tree I deleted the documents parent document, which normally deletes all child documents at the same time. But in this case the parent document has been deleted and the child document still remains. The unwanted document is a custom document type. I can no longer see it via the CMSDesk as the parent document no longer exists. But if I go to the CMSSitemanager/Development/Document Types and go into the custom document type and select the Documents tab it’s still listed there. Clicking on the link displays a “Required document no longer exists, please select another document.” error message. If I query the database directly the data is still there in the custom document table, and also the cms_tree table and cms_document table.

Can I remove this document by deleting the row data from these 3 tables? Is it link in any of the other CMS tables?

Thanks,
Tim

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/12/2010 8:59:21 AM
   
RE:Cant delete page document
Hi Tim,


if the document does not have any attachments and you do not use a workflow then the data for document are in the three tables which you mentioned. You can delete them from the database.


Best regards,
Helena Grulichova

User avatar
Member
Member
tspring-allegra - 7/12/2010 10:25:24 AM
   
RE:Cant delete page document
Hi

Thanks for your help. I deleted the rows from the system table to fully remove the document. But when I went to create a new version of that document type in the CMSDesk and tried to delete it I had the same problem again of not being able to fully remove it without going into the system tables.

I think there must have been something corrupt in that custom document type, as I decided to recreate the document type (using a different name, but same options and fields), and now I can add and delete the new custom document type without and problems.

Weird, but at least it works properly now!

Thanks again,
Tim

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/14/2010 4:05:48 PM
   
RE:Cant delete page document
Hi Tim,


thank you for your update.

It is really strange. However, I am happy it works now.


Best regards,
Helena Grulichova