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


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 (12) 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

  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!


  12. Пополение баланса Авито (Avito) за 50% | Телеграмм @a1garant

    Приветствую вас, дорогие друзья!

    Будем рады предоставить Всем вам услуги по пополнению баланса на действующие активные аккаунты Avito (а также, совершенно новые). Если Вам надо конкретные балансы – пишите, будем решать. Потратить можно на турбо продажи, любые платные услуги Авито (Avito).

    Аккаунты не Брут. Живут долго.

    Процент пополнения в нашу сторону и стоимость готовых аккаунтов: 50% от баланса на аккаунте.
    Если требуется залив на ваш аккаунт, в этом случае требуются логин и пароль Вашего акка для доступа к форме оплаты, пополнения баланса.
    Для постоянных клиентов гибкая система бонусов и скидок!

    И, конечно же ничто не укрепляет доверие, как – Постоплата!!! Вперед денег не просим… А также, гасим Штрафы ГИБДД за 65% …

    ЯндексДеньги, Webmoney (профессиональные счета)
    Рады сотрудничеству!

    Залив Авито

    авито женская одежда пакетами
    авито орловская область вещи пакетом
    авито частные бесплатные
    купить вещи пакетом +в авито
    аккаунты авито +с балансом бесплатно

Leave a comment