Hi There
I tried to simulate changing the core content type "Document" that is used by all documents that do not derive from a custom content type and received the following error:
The content type "System Page Layout" at "/" is sealed.
The content type "System Master Page" at "/" is sealed.
The content type "Office Data Connection File" at "/" is read only.
The content type "Universal Data Connection File" at "/" is read only.
The content type "System Page" at "/" is sealed.
The content type "Unknown Document Type" at "/" is read only.
The content type "Page Layout" at "/_catalogs/masterpage" is sealed.
It therefore became very clear that the core content types cannot be changed as there are too many dependancies on them from other content types. The only solutions is to built the structure the way it was intended.
-
Build a custom content type that inherits from the base content type "Document"
-
Apply the content type to the documents.
-
Build the "Information Management Policy" using this content type for expiration.
The problem that you currentlty have is that a lot of documentation has already been loaded. Short of manualy editing every single document and changing the content type, you are going to have to build a workflow in Visual Studio.
Visual Studio 2008 has just recently made an add-on pack availble for sharepoint that makes live a lot easier.
-
Create a new project in VS 2008.
-
Connect to the XML web service made available by Sharepoint.
-
Enumerate through the site collection and programaticaly change the content type of all the documents.
-
While you are busy, you might as well write a workflow rule to dispose of the documents that is more flexible.
I am sorry I do not have a quick fix for you, but I how this points you in the right direction.
PS: There are now Powershell components available for Sharepoint that might also do the trick.
Regards
Neil van Wyngaard
Neil van Wyngaard is a MCSE, MCSD, MCDBA, MCT, MCTS, MCITP, MCBMSS. Neil's core industry focus is CRM, ERP, EPM and ECM implementations in the enterprise environment. Core technology focus is based on SQL Server, Visual Studio, WSS, MOSS and OCS