Olav Aukan Getting information off the Internet is like taking a drink from a fire hydrant…

21Mar/11

How to ghost an unghosted content type

A while back I wrote a post about content types becoming unghosted when you edit them in the UI and there not being any way of reversing this without directly modifying the content database. That would put you in an unsupported state, so obviously it's not an option for most people. But as it turns out there is a supported way of doing this after all, it's just not very well documented...

A colleague of mine was having this same problem and informed me that he was able to fix it with the STSADM Deactivatefeature operation by adding the -force parameter.

Let us see what the Holy Gospel according to TechNet has to say about the -force parameter:

"force - Forces the feature to be uninstalled."

In other words, not much help to be found in the scriptures. But it works! When the feature containing the unghosted content type(s) is deactivated with the -force parameter the Definition column in the ContentTypes table goes back to NULL, meaning it is now using the XML definition again.

You can then use the gl-propagatecontenttype custom STSADM command from Gary Lapointe with the -updatefields parameter to push changes in the site content type down to the list content type.

Comments (11) Trackbacks (1)
  1. Nice Blog… it really worked and resolved my issue.

  2. Is it for SP2010?It does nto work on MOSS 2007. I’ve just tried few times with no luck. FYI, deactivate -force is removing the entry(only the entry for the site collection that I’ve deactivated) from contenttypes table.I’ve tried on my dev box instead of changing to NULL it removed from the DB.

  3. Recommended amounts and levels of physical exercise were distributed in 1996 with
    the U. S. Surgeon General (U. S. Department of Health and Individual
    Services, 1996).

  4. Subscribe to receive monthly improvements on the
    latest RAND news plus research on Health and Health Care.

  5. Using rigorous mixed-methods research approaches may enhance our ability to understand plus
    address the pressing issues associated with clinical care in an increasingly complicated healthcare
    system.

  6. may be hospitalized if the medication that was provided
    to me does not work in the next 48 hrs.

  7. It does not transform carbs or calories to body fat.

  8. In case you are pregnant, nursing, taking other medicines, have a serious medical condition, or have a brief history of
    heart conditions we recommend consulting with a physician before using this
    product. The information contained in this Website is offered for general informational
    purposes just.

  9. In writing, the facts look very appealing, nevertheless it’s put to the test, the results are usually less than impressive.

  10. My relatives all the time say that I am wasting my time here at net, but I know I am getting knowledge all
    the time by reading thes good posts.

  11. Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0″:
    captchas regignizing of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? There are a lot of introducing videos about XEvil in YouTube.
    Good luck!

    XRumer20170721


Leave a comment