<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mylifeinaminute.com &#187; Content Types</title>
	<atom:link href="http://www.mylifeinaminute.com/tag/content-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:33:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Exception: The content type is in use</title>
		<link>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/</link>
		<comments>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:53:14 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[Content Types]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=344</guid>
		<description><![CDATA[I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification). Today when I attempted to completely retract my form (inlcuding manually deleting the content [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found that working with InfoPath is becoming more and more of a chore.  A form I&#8217;ve been working on has had its promoted columns changed a number of times (Side note: I would just love to have a defined specification).</p>
<p>Today when I attempted to completely retract my form (inlcuding manually deleting the content type associated with the form), I was presented with the always helpful error &#8220;<span style="color: red;"><em>The content type is in use</em></span>&#8220;.  This is by far one of the more helpful errors you will ever see from SharePoint.  Unfortunately it isn&#8217;t clear how to discover where the content type is actually in use.  A quick trip to the content database for the site collection you are working in can show us:</p>
<pre>
<pre class="brush: sql; title: ; notranslate">
DECLARE @ContentTypeName nvarchar(128)

SET @ContentTypeName='Content Type Name Here'

SELECT w.Title AS [Web Site], w.FullUrl AS [Web Url], al.tp_Title AS [List Title],
	ct2.*
FROM ContentTypes ct1
	JOIN ContentTypes ct2 ON LEFT(ct2.ContentTypeId, Len(ct1.ContentTypeId))=ct1.ContentTypeId
	LEFT OUTER JOIN dbo.ContentTypeUsage ctu ON LEFT(ctu.ContentTypeId, Len(ct2.ContentTypeId)) = ct2.ContentTypeId
	LEFT OUTER JOIN dbo.AllLists al ON ctu.ListId = al.tp_Id AND ctu.WebId=al.tp_WebId
	LEFT OUTER JOIN dbo.Webs w ON al.tp_WebId = w.Id WHERE ct1.ResourceDir=@ContentTypeName
</pre>
</pre>
<p>[Credit to <a href="http://social.msdn.microsoft.com/en-US/profile/?user=Curtis%20Ruppe%20_MicroStaff%20IT_&#038;referrer=http%3A//social.msdn.microsoft.com/Forums/en-US/sharepointadmin/thread/0a558f4f-cd1e-4432-85bb-caaa3a3b57ae/#sort=recent&#038;page=0&#038;filter=allcontent" target="_blank">Curtis Ruppe</a>]</p>
<p>Once we know where the content type is in use, deleting it through the GUI is a trivial matter.</p>
<p><map name='google_ad_map_344_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/344?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_344_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=344&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F03%2F17%2Fexception-the-content-type-is-in-use%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/03/17/exception-the-content-type-is-in-use/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.mylifeinaminute.com @ 2012-02-07 15:27:40 by W3 Total Cache -->
