Karine Bosch’s Blog

On SharePoint

Changing a site column in a content type published in an Enterprise Content Type Hub


This week I had to change the data type of a site column that was already used in several content types. Those content types are created in an Enterprise Content Type Hub and published to other site collections. Adding fields to a content type is not that difficult but changing the data type of one is another story. After a lot of time with trial and error I found a way to do this. Here are the steps you need to follow in the exactly same order, otherwise your site column will remain the same although changed in the Enterprise Content Type Hub:

  1. In the content type hub, remove the site column from the impacted content types.
  2. Delete the site column in the content type hub.
  3. Republish the affected content types.
  4. Wait for the timer jobs to run or in the Central Admin, run first the Content Type Hub timer job and then the Content Type Subscriber timer job.
  5. In the site collections, check that the column is gone from the content types. If so, go to the Site Columns page of the site collection. Click on the site column that you want to change. You will see that the site column is not longer read only. Delete the site column.
  6. Return to the Enterprise Content Type Hub and add the site column again but now with the correct data type.
  7. Add the new site column to the affected content types.
  8. Republish the affected content types.
  9. Wait for the timer jobs to run or in the Central Admin, run first the Content Type Hub timer job and then the Content Type Subscriber timer job.
  10. In the site collections, check the content types. You will see that the content type includes the changed site column.

 

Advertisements

October 24, 2010 - Posted by | Uncategorized

3 Comments »

  1. what happens to the data in your libaries / lists during this process? If your old fields had values will they be deleted in the lists/libraries?

    Comment by Andreas | January 11, 2012 | Reply

  2. If you already have data in the lists to which the content type is attached, you will loose data when you use this way of working. In that case you will have to figure something out in code.

    Comment by Karine Bosch | January 12, 2012 | Reply

  3. Hello Karine – Do you happen to know if it is possible to manually add Site Column values to an Enterprise Site Column at the Site Collection level and at some point in the future add those same Site Column values via the Enterprise Content Type Hub and push them down to replace the Site Column values you had added manually at the Site Collection level? 🙂 I am wondering the impact on documents that have been tagged/used the manually added local Site Column values? Would they become orphaned or would the new Enterprise Site Column values simply replace the local Site Column values (which is desired)?

    Comment by Brian | November 12, 2015 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: