The i-Technology Media!
Register | Log in
   
 
.NET  ·  AJAX  ·  CLOUD  ·  ECLIPSE  ·  FLEX  ·  OPEN WEB  ·  iPHONE  ·  JAVA  ·  LINUX  ·  OPEN SOURCE  ·  ORACLE  ·  PBDJ  ·  SEARCH  ·  SILVERLIGHT  ·  SOA  ·  VIRTUALIZATION  ·  WEB 2.0  ·  WIRELESS  ·  XML
Comments
Drool, Britannia? Is the UK Failing the Cloud?
By Roger Strukhoff
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Jan. 8, 2012 11:38 AM EST
read more & respond »
Cloud Expo on Google News
Did you read today's front page stories & breaking news?

Cloud Expo & Virtualization 2011 West
Keynotes
Oracle
Opening Keynote | An Enterprise Cloud for Business-Critical Applications
Abiquo
Day 2 Keynote | The Enterprise Cloud Tightrope - Balancing for Success
Akamai
Day 3 Keynote | The DNA of an Enterprise Cloud
DIAMOND SPONSOR:
Oracle
Many Clouds, Many Choices'Cloud
PLATINUM PLUS SPONSORS:
Abiquo
Enterprise Cloud Best Practices - Town Hall - Join the discussion…
PLATINUM SPONSORS:
Intel
Progressing Toward the Federated, Automated and Client-Aware Cloud
New Relic
How to build an app with Twitter-like throughput
Rackspace
Computing in the Cloud Era
GOLD SPONSORS:
Gale Technologies
Practical Cloud Migration
IBM
Re-think IT. Re-inventing Business.
Intel/McAfee
Identity Driven Security in the Cloud
PerspecSys
Hackers Hackers Everywhere, Is My Public Cloud That Safe?
Red Hat
Unlock the Value of the Cloud
SHI
Mission Critical Applications and the Cloud - Myth or Reality?
SoftLayer
Not Your Grandpa's Cloud
Terremark
Integrating Enterprise Clouds
VMware
Upgrade to a vCloud
POWER PANELS:
Cloud Expo Silicon Valley: CTO Power Panel
Cloud Expo Silicon Valley: CEO Power Panel
Cloud Expo Silicon Valley: Cloud SuperStars Panel
Cloud Expo Silicon Valley: CloudNOW Panel
Click For 2010 West
Event Webcasts
Cloud Expo & Virtualization 2011 East
DIAMOND SPONSOR:
Dell
Dell & VMware Deliver the Enterprise Hybrid Cloud
PLATINUM PLUS SPONSORS:
Abiquo
Are Financial Services Organizations Risking Security by Avoiding Cloud Computing?
Oracle
From Consolidation to Enterprise Private PaaS
PLATINUM SPONSORS:
Intel
Driving the Transformation to Next Generation Cloud Data Centers
Rackspace
The Inevitability of an Open Cloud
GOLD SPONSORS:
CA Technologies
Follow YOUR path to Cloud Computing
Interxion
Who Keeps the Cloud in the Air?
Microsoft
Patterns for Cloud Computing
PerspecSys
War in the Clouds: Are you ready?
ServiceMesh
The Big Win: Stop Playing Small-Ball with Your Cloud Strategy
Terremark
Evaluating Enterprise Clouds
Xiotech
Cloud Storage: Myths and Realities
POWER PANELS:
Cloud Expo New York: CTO Power Panel
Cloud Expo New York: CEO Power Panel
Cloud Expo New York: CMO Power Panel
Cloud Expo New York: Wrap-Up Power Panel
Click For 2010 West
Event Webcasts
Live Google News by SYS-CON!
Top Three Links You Must Click On


Deleting Deeply Entrenched Site Columns - Another Reason for Governance

By: Andrew Gelina
Jan. 6, 2009 08:28 PM

I was recently called back to a previous client to help with a list of issues and tasks they had accumulated, and I was surprised to find one very difficult one:

The client complained about seeing multiple duplicate columns available for views and filtering in one of their large document libraries.  I knew they used InfoPath, so I had assumed that they had run into the problem I blogged about here:  Automatic Creation of InfoPath forms - not as easy as I thought regarding InfoPath re-creating duplicate site columns when in certain cases of re-publishing forms.

This client had not done anything like this with InfoPath, instead they had created approval workflows (out of the box) at the web/site level and applied them Content Types, so far so good.  Each of the multiple Content Type had their own approval workflows, and the columns appearing multiple times all happened to be the name of the column created as the WorkflowStatus type used by SharePoint to maintain the state/status of the workflow.  I'm not exactly sure what happened,  but I'm assuming they created, deleted, re-created, etc. these workflows using the same name a bunch of times, possibly at different levels within the sites, since some of the Content Types lived at the Site Collection level.  This caused this column to keep showing up (same Display Name, unique Internal Name) multiple times.

Although normally not a big deal, this was a real bugger to get rid of.  The UI won't let you drop the field because it is read only on the list, and it's also attached to the Content Type.

Untitled picture4

Here is how I solved it:

1.  Gather up all the data to make sure you know which field is current and legitimate by looking at the data contained within it.  Keep at note of the internal name by sorting on it in a list view and looking for the SortField querystring parameter.

2.  Delete it from the Content Type first by going to list settings and clicking on a your Content Type link.  Then click on any of the columns in this list to get to the "Change List Content Type Column" screen.  We need to replace some variables in the querystring to locate our hidden field/column.

First, replace the Field parameter with the *Internal Name* of your field.  You have that from #1 above.

Second, you need to replace the Fid (FieldID) parameter with the correct GUID of the field you want to delete from the Content Type.  The easiest way for me to do this is to use SharePoint Manager 2007, an invaluable tool that is free from CodePlex.  Here is a screenshot where I can see and verify the Internal Name and ID.  You can see the duplicate field names under the "Customer Specification" Content Type in the left tree view.

Untitled picture5

Once you have replaced both of these values MAKE SURE YOU FORCE A BROWSER RELOAD.  The best way to do this is copy the new url and load it in a new browser window.  You should see your column details in the page.  If you just swap variables and hit "Delete" the data in the page may still be pointing at the legitimate column you clicked on to get here.

3.  Delete the Field from the actual list.

I was not able to find a way to delete the field from the list through the UI no matter how much trickery or querystring replacement I tried.  Fields need to have their Hidden and ReadOnlyField status set false before they can be deleted, and SharePoint Manager 2007 wouldn't let me do this for some reason.  I had to resort to a console application.  Quick and dirty code pasted below.

                SPList isoDocs = web.Lists["Documents"];
               
SPField field = isoDocs.Fields[new Guid("3e68ae11-e4a7-4bfe-aca9-d1cac96c14d1")];
               
Console.WriteLine(field.InternalName);
               
LogMessageToFile(field.InternalName);
               
field.Hidden = false;
               
field.ReadOnlyField = false;
               
field.Update();
               
isoDocs.Fields.Delete(field.InternalName); 
 
After tediously looking at each column to figure out what was the correct one and determine which ones to delete through the above process, I was able to clean up the environment. 
 
This brings up an important issue I try to stress with all clients:  Governance.  In most modern organizations there is enough spare hardware to set up a development/test environment for SharePoint and to restore a copy of your production content DB to test changes against a safe, but duplicate environment.  Having these options in place will definitely save you time and money over the long run.  I almost never make changes to a production environment, even simple ones, without first testing it against a copy of that environment and evaluating the effects.  Some planning up front about having the infrastructure in place and a set of change rules to follow could avert disasters.
 
****UPDATE****
I wanted to let everyone know that the column duplication and inability to delete them issue was easy to reproduce, and in my opinion should be a bug in SharePoint.  If you create an approval workflow and attach it to a content type, it creates a field in the content type and a field and column in the list where the content type resides.  If you delete the workflow the field and column remains, unable to be deleted because of the read-only status.  Be careful of this in the future.
 
I hope this helps,
-Ryan Thomas

Read the original blog entry...

Published Jan. 6, 2009— Reads 550
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
About Andrew Gelina
Andrew Gelina brings over 12 years of software architecture and development experience to his role as CEO of Syrinx Consulting, where he is responsible for the strategic direction, technology focus, operations management, and growth of the firm.

Prior to joining Syrinx in 2003, Andrew helped build Web Technology Partners into a leading software engineering consulting firm before selling it in 2000 to Monster.com, the global online career and recruitment resource. During the next three years at Monster, he developed software and managed projects for virtually every area of Monster's operations, from CRM integration to e-commerce to high-traffic, high-volume Web development. He also worked closely with Microsoft to scale its .NET platform to Monster's huge transaction volumes.

Andrew has also worked in several other areas of technology leadership, performing technical due diligence for companies considering acquisitions and selling professional services. He started his career at EDS, helping them develop cellular billing and switch interface software to support the emerging wireless industry.

He graduated cum laude from the University of Massachusetts at Amherst, where he received a bachelor's degree in operations management. Andrew is a member of the CEO Roundtable of the Massachusetts Technology Leadership Council.

Andrew and his 35-member team work on-site with clients all over New England.

Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON Featured Whitepapers

ADS BY GOOGLE

Breaking Java News
NASA Selects St. Louis, Missouri Teacher To Be "Agent of Change" for STEM Education
McLane Advanced Technologies Adds Distinguished Retired General to Board of Advisors
Orex Grants Stock Options
WWW.MONEY.CA Launches; New Canadian Money Site for Personal Finance
New Book About Brand Rituals Reaches No. 1 in Marketing Category on Amazon
Judicial Watch Statement on Court Ruling Allowing Maryland DREAM Act to Remain on 2012 Ballot
Former #OWS Working Group Announces a "National General Assembly" to Convene in Philadelphia the Week of July 4, 2012 for the Purpose of Ratifying a Petition for the Redress of Grievances
News Conference: FRC's Tony Perkins Releases Letter Signed By 2,500 Religious Leaders Opposing Contraceptive Mandate February 17, 2012
Pipeline Tensions: Frustration Mounts at Review Hearings as Enbridge Lawyers Try to Limit Testimony of Elected Representatives
Prima Games Releases The Elder Scrolls V: Skyrim® Official World Interactive Map App for the iPad and iPhone

ADVERTISE   |   MAGAZINE SUBSCRIPTIONS   |   FREE BREAKING-NEWSLETTERS!   |   SYS-CON.TV   |   BLOG-N-PLAY!   |   WEBCAST   |   EDUCATION   |   RESEARCH

.NET Developer's Journal - .NETDJ   |   ColdFusion Developer's Journal - CFDJ   |   Eclipse Developer's Journal - EDJ   |   Enterprise Open Source Magazine - EOS
Open Web Developer's Journal - OPENWEB   |   iPhone Developer's Journal - iPHONE   |   Virtualization - Virtualization   |   Java Developer's Journal - JDJ   |   Linux.SYS-CON.com
PowerBuilder Developer's Journal - PBDJ   |   SEO / SEM Journal - SJ   |   SOAWorld Magazine - SOAWM   |   IT Solutions Guide - ITSG   |   Symbian Developer's Journal - SDJ
WebLogic Developer's Journal - WLDJ   |   WebSphere Journal - WJ   |   Wireless Business & Technology - WBT   |   XML-Journal - XMLJ   |   Internet Video - iTV
Flex Developer's Journal - Flex   |   AJAXWorld Magazine - AWM   |   Silverlight Developer's Journal - SLDJ   |   PHP.SYS-CON.com   |   Web 2.0 Journal - WEB2
Apache   |   CMS   |   CRM   |   HP   |   Oracle Journal   |   Perl   |   Python   |   Red Hat   |   Ruby on Rails   |   SAP   |   SaaS

SYS-CON MEDIA:   ABOUT US   |   CONTACT US   |   COMPANY NEWS   |   CAREERS   |   SITE MAP
SYS-CON EVENTS:   |  AJAXWorld Conference & Expo  |  iPhone Developer Summit  |  Cloud Computing Conference & Expo  |  SOA World Conference & Expo  |  Virtualization Conference & Expo
INTERNATIONAL SITES:   India  |  U.K.  |  Canada  |  Germany  |  France  |  Australia  |  Italy  |  Spain  |  Netherlands  |  Brazil  |  Belgium
 Terms of Use & Our Privacy Statement     About Newsfeeds / Video Feeds
Copyright ©1994-2008 SYS-CON Publications, Inc. All Rights Reserved. All marks are trademarks of SYS-CON Media.
Reproduction in whole or in part in any form or medium without express written permission of SYS-CON Publications, Inc. is prohibited.
 
close this window