
Orphan, it means the column of the form library doesn't belong to any content type; Duplicate means you could have one column belongs to a content type and another column with same *name* in the same library, the later often is an orphan.
To remove the Orphan column is a very painful process, and often you cannot do it using the SharePoint UI and have to use code.
I was planning to publish a utility I wrote just for this and put it on CodeProject, but CodeProject rejected it demanding a lot of formatting changes but I had no time for that, and on second thought as deleting a site column is a dangerous action to perform I decided not to release my code as a utility. As this issue is such a common one, other folks had written about their method of site column cleaning up as well, one that requires some of your own coding is this one:
http://nikspatel.wordpress.com/2010/08/07/delete-orphaned-workflow-status-columns-from-sharepoint-list-views/
(the idea behind my utility was after you selected a site list, the columns of this list that does NOT belong to ANY content type will be shown in a data grid this includes out of the box list columns and orphan columns from infopath or workflow, from there you could delete them one by one.)
I would love to have link to the published CodeProject for this issue of orphaned columns. Please assist.
ReplyDeleteHi, I submitted a package to CodeProject when I put up that blog post but they rejected for some formatting reason, and considering removing a site column is rather dangerous action to perform in a production environment, I had second thought releasing it as a utility myself. Good luck with your SharePoint project, it is a powerful platform, but some time frustrating to work with as well.
ReplyDelete