Tuesday, October 1, 2013

Deleting orphaned content type

If deleting an orphaned content type gives the error "SPException: The content type "XYZ" is part of an application feature.", we need to change "IsFromFeature" flag in content database for the particular content type from "1" to "0" as explained in these posts:

http://sharepoint.stackexchange.com/questions/11114/how-to-delete-a-content-type-part-of-an-application-feature

http://apichot.blogspot.co.uk/2009/11/how-to-delete-orphan-content-type.html?_sm_au_=iVVW6SjD4nF5Jrt6

and then  delete the content type either manually or using code as explained here:

http://msdn.microsoft.com/en-us/library/ms453791.aspx

If you get an error "Content Type is still in use<nativehr>0x800710d3</nativehr><nativestack></nativestack>" follow below instructions
http://www.mysharepointadventures.com/2011/06/content-type-is-still-in-use-woes/

There are some times broken link as explained in below post, but this method is too risky to try and not supported by microsoft. I have just mentioned it here for a reference, but I would not recommend it.
http://mqsharepoint.blogspot.co.uk/2009/01/content-type-is-still-in-use.html?_sm_au_=iVVtTJsssQkjV8tM 

No comments:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...