<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>All about MOSS</title>
	
	<link>http://allaboutmoss.com</link>
	<description />
	<lastBuildDate>Tue, 07 Feb 2012 08:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AllAboutMoss" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="allaboutmoss" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">AllAboutMoss</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Creating a Search Content Source of type Web using PowerShell</title>
		<link>http://allaboutmoss.com/2012/02/07/creating-a-search-content-source-of-type-web-using-powershell/</link>
		<comments>http://allaboutmoss.com/2012/02/07/creating-a-search-content-source-of-type-web-using-powershell/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 08:53:59 +0000</pubDate>
		<dc:creator>Deepu Nair</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=781</guid>
		<description><![CDATA[The New-SPEnterpriseSearchCrawlContentSource command in Powershell is used to create a new crawl content source for a SharePoint search application.We can view the whole set of parameters and options in this msdn article. So , when we need to create a SharePoint Search content source, using Powershell, we use the following commands- This would create a content source Clicking [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;font-size: 12pt">The <strong>New-SPEnterpriseSearchCrawlContentSource</strong> command in Powershell is used to create a new crawl content source for a SharePoint search application.We can view the whole set of parameters and options in <a href="http://technet.microsoft.com/en-us/library/ff607867.aspx">this msdn article</a>.</p>
<p style="font-size: 12pt">So , when we need to create a SharePoint Search content source, using Powershell, we use the following commands-</p>
<pre class="brush: xml; title: ; notranslate">
$searchapp = Get-SPEnterpriseSearchServiceApplication &quot;Search Service Application&quot;
New-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Type SharePoint -name ContentSourceWithTypeSharePoint -StartAddresses http://localhost:6001/
</pre>
<p style="text-align: justify;font-size: 12pt">This would create a content source</p>
<p style="text-align: justify;font-size: 12pt"><a href="http://allaboutmoss.com/wp-content/uploads/2012/02/11-e1328595167650.jpg" rel="lightbox[781]" title="1"><img class="alignnone size-full wp-image-789" title="1" src="http://allaboutmoss.com/wp-content/uploads/2012/02/11-e1328595379715.jpg" alt="" width="1000" height="197" /></a></p>
<p style="text-align: justify;font-size: 12pt">Clicking on the &#8220;ContentSourceWithTypeSharePoint&#8221; would open up the content source which we have created using the default settings as below:</p>
<p style="text-align: justify;font-size: 12pt"><a href="http://allaboutmoss.com/wp-content/uploads/2012/02/12.jpg" rel="lightbox[781]" title="1"><img class="alignnone size-full wp-image-797" title="1" src="http://allaboutmoss.com/wp-content/uploads/2012/02/12.jpg" alt="" width="430" height="519" /></a></p>
<p style="text-align: justify;font-size: 12pt">This was a simple scenario. Now consider creating the content source of type &#8220;Web&#8221; which would be</p>
<pre class="brush: xml; title: ; notranslate">
$searchapp = Get-SPEnterpriseSearchServiceApplication &quot;Search Service Application&quot;
New-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Type Web -name ContentSourceWithTypeWeb -StartAddresses http://localhost:5000/
</pre>
<p style="text-align: justify;font-size: 12pt">And this would create a content source with type &#8220;Web&#8221; as below</p>
<p style="text-align: justify;font-size: 12pt"><a href="http://allaboutmoss.com/wp-content/uploads/2012/02/13.jpg" rel="lightbox[781]" title="1"><img class="alignnone size-full wp-image-799" title="1" src="http://allaboutmoss.com/wp-content/uploads/2012/02/13.jpg" alt="" width="422" height="647" /></a></p>
<p style="text-align: justify;font-size: 12pt">Here, we can see that the crawl behavior is set to custom and there would be no direct parameters in Powershell to change these options.</p>
<p style="font-size: 12pt">So, I recently had a research into this and found out that adding the parameters, <strong>MaxPageEnumerationDepth </strong>and <strong><strong>MaxSiteEnumerationDepth </strong></strong>, could bring you these options.</p>
<p style="text-align: justify;font-size: 12pt">ie, To bring the crawl option to the second option -&#8221;<label for="ctl00_PlaceHolderMain_webSettingsCrawlPageRadioButton">Only crawl the first page of each start address&#8221;, the Powershell script would be </label></p>
<pre class="brush: xml; title: ; notranslate">
$searchapp = Get-SPEnterpriseSearchServiceApplication &quot;Search Service Application&quot;
New-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Type Web -name ContentSourceWithTypeWeb -StartAddresses http://localhost:5000/ -MaxPageEnumerationDepth 0 -MaxSiteEnumerationDepth 0
</pre>
<p style="text-align: justify;font-size: 12pt">This actually means that the Page depth and the Site depth that you expect is zero, which defaultly means that you would be crawling only the first page of your start address and hence this option is selected.</p>
<p style="text-align: justify;font-size: 12pt">and to bring the crawl option to the first option -&#8221;<label for="ctl00_PlaceHolderMain_addContentSourceControl_webSettingsCrawlSiteRadioButton">Only crawl within the server of each start address</label><label for="ctl00_PlaceHolderMain_webSettingsCrawlPageRadioButton">&#8220;, the Powershell script would be </label></p>
<pre class="brush: xml; title: ; notranslate">
$searchapp = Get-SPEnterpriseSearchServiceApplication &quot;Search Service Application&quot;
New-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Type Web -name ContentSourceWithTypeWeb -StartAddresses http://localhost:5000/ -MaxSiteEnumerationDepth 0
</pre>
<p style="text-align: justify;font-size: 12pt">This actually means that the Site depth that you expect is zero and it can go any pages deep if it is within the server, which definitely means you would be crawling only within the server of the start address.</p>
<p style="font-size: 12pt">This post was inspired from a question asked in SharePoint.Stackexchange.com - <a href="http://sharepoint.stackexchange.com/questions/27901/how-to-create-a-content-source-of-type-web-with-the-option-only-crawl-within/27908#27908">http://sharepoint.stackexchange.com/questions/27901/how-to-create-a-content-source-of-type-web-with-the-option-only-crawl-within/27908#27908</a></p>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2012/02/07/creating-a-search-content-source-of-type-web-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean Up Customized CSS Files with CSSCompare</title>
		<link>http://allaboutmoss.com/2012/01/29/clean-up-customized-css-files-with-csscompare/</link>
		<comments>http://allaboutmoss.com/2012/01/29/clean-up-customized-css-files-with-csscompare/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 04:50:42 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[csscompare]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=779</guid>
		<description><![CDATA[Have you ever come across a SharePoint installation that&#8217;s been customized in an unsupported way? You look at the 12 (or 14) hive and see that files have been modified by hand? Not good. As you may know, changing core SharePoint files is unsupported and can lead to problems when patching. The best way to [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever come across a SharePoint installation that&#8217;s been customized in an unsupported way? You look at the 12 (or 14) hive and see that files have been modified by hand? Not good.</p>
<p>As you may know, changing core SharePoint files is unsupported and can lead to problems when patching.</p>
<p>The best way to clean up modified SharePoint installations is to pull out the customizations and move them into new files as part of a solution package (WSP file). That makes it easy to re-deploy customizations and ensures your environment will stay clean.</p>
<p>Read more <a href="http://blogs.pointbridge.com/Blogs/johnson_bert/Pages/Post.aspx?_ID=30">here</a> and download <a href="http://csscompare.codeplex.com/">CSSCompare </a>here.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2012/01/29/clean-up-customized-css-files-with-csscompare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint document convertor</title>
		<link>http://allaboutmoss.com/2011/12/20/sharepoint-document-convertor/</link>
		<comments>http://allaboutmoss.com/2011/12/20/sharepoint-document-convertor/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 05:56:05 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[document conversion]]></category>
		<category><![CDATA[word automation]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=766</guid>
		<description><![CDATA[SharePoint Document Converter solution gives a start on how we can leverage the Word automation Service to convert documents to formats that word can support. This project convert documents of type &#8220;DOCX&#8221; or &#8220;DOC&#8221; to any possible file type that word support like to PDF, XPS, DOCX, DOCM, DOC, DOTX, DOTM, DOT, XML, RTF, MHT. [...]]]></description>
			<content:encoded><![CDATA[<p>SharePoint Document Converter solution gives a start on how we can leverage the Word automation Service to convert documents to formats that word can support. This project convert documents of type <em>&#8220;DOCX&#8221; or &#8220;DOC&#8221;</em> to any possible file type that word support like to <em> PDF, XPS, DOCX, DOCM, DOC, DOTX, DOTM, DOT, XML, RTF, MHT.</em><br />
<a href="http://allaboutmoss.com/wp-content/uploads/2011/12/spconvertor.jpg" rel="lightbox[766]" title="spconvertor"><img class="alignnone size-full wp-image-769" title="spconvertor" src="http://allaboutmoss.com/wp-content/uploads/2011/12/spconvertor.jpg" alt="" width="540" height="481" /></a></p>
<p>Check out more about the project in <a href="http://spwordtopdfconverter.codeplex.com/">Codeplex Project Home Page</a>.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/12/20/sharepoint-document-convertor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas Time – Snow in Home Page</title>
		<link>http://allaboutmoss.com/2011/12/08/christmas-time-snow-in-home-page/</link>
		<comments>http://allaboutmoss.com/2011/12/08/christmas-time-snow-in-home-page/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 22:09:46 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[snow webpart]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=753</guid>
		<description><![CDATA[Its Christmas time and time for some fun with our SharePoint site. Here is a quick trick to show snow fall in your SharePoint page (May be your Intranet Home Page). It will take you just few minutes to setup. 1. Go to this site and download Snowstorm.js file and upload it to some Document [...]]]></description>
			<content:encoded><![CDATA[<p>Its Christmas time and time for some fun with our SharePoint site. Here is a quick trick to show snow fall in your SharePoint page (May be your Intranet Home Page). It will take you just few minutes to setup.</p>
<p>1. Go to this <a href="http://www.schillmania.com/projects/snowstorm/" target="_blank">site</a> and download <a href="http://www.schillmania.com/projects/snowstorm/" target="_blank">Snowstorm.js</a> file and upload it to some Document Library</p>
<p>2. Open your SharePoint page and add a Content Editor WebPart.</p>
<p>3. Edit the HTML Source for the content Editor WebPart</p>
<p><a href="http://allaboutmoss.com/wp-content/uploads/2011/12/html.png" rel="lightbox[753]" title="html"><img class="alignnone size-full wp-image-754" title="html" src="http://allaboutmoss.com/wp-content/uploads/2011/12/html.png" alt="" width="202" height="149" /></a></p>
<p>4. Add the following code and set the Chrome Type for the Web Part as none</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script src=&quot;{Path}/snowstorm-min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>5. Save and Exit Edit mode and that&#8217;s it! <img src='http://allaboutmoss.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://allaboutmoss.com/wp-content/uploads/2011/12/snow.png" rel="lightbox[753]" title="snow"><img class="alignnone size-medium wp-image-761" title="snow" src="http://allaboutmoss.com/wp-content/uploads/2011/12/snow-300x211.png" alt="" width="300" height="211" /></a></p>
<p>It&#8217;s always a good idea to have a &#8220;<strong>Stop Snowing</strong>&#8221; link for those who find this annoying. Simply edit the JavaScript code in the Content Editor WebPart and add the following code.</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;/Docs/snowstorm-min.js&quot;&gt;&lt;/script&gt;
&lt;a onClick=&quot;javascript:snowStorm.stop();&quot; href=&quot;#&quot;&gt;Stop Snowing&lt;/a&gt;
</pre>
<p>There are many other customization available. Check <a href="http://www.schillmania.com/projects/snowstorm/" target="_blank">this page</a> for more options.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/12/08/christmas-time-snow-in-home-page/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Error with DataForm web part in SharePoint 2010</title>
		<link>http://allaboutmoss.com/2011/12/07/error-with-dataform-web-part-in-sharepoint-2010/</link>
		<comments>http://allaboutmoss.com/2011/12/07/error-with-dataform-web-part-in-sharepoint-2010/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 16:32:48 +0000</pubDate>
		<dc:creator>Deepu Nair</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[data form]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=739</guid>
		<description><![CDATA[I had recently seen in forums where people have issues with DataForm web parts in SharePoint 2010, one way or the other. So I thought its time to make it a post. Error Scenarios: These are the possible errors that can occur: 1. SharePoint Designer popping up correlation ID with detailed error something like this [...]]]></description>
			<content:encoded><![CDATA[<p>I had recently seen in forums where people have issues with DataForm web parts in SharePoint 2010, one way or the other. So I thought its time to make it a post.</p>
<p><strong>Error Scenarios:</strong></p>
<p>These are the possible errors that can occur:</p>
<p>1. SharePoint Designer popping up correlation ID with detailed error something like this</p>
<blockquote><p><em>Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.  </em></p></blockquote>
<p>2. Error while saving site as template <em></em></p>
<blockquote><p><em>System.InvalidOperationException: Error generating solution files in temporary directory.</em><br />
<em>at Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution()</em></p></blockquote>
<p>This issue might appear for just one site or subsite in the whole site collection. Basically it could be assumed that this occurs with a particular site that has a DataForm web part or any web part that inherits from this DataForm web part. Removing the DataForm webparts from the site or page might bring things to normal.</p>
<p><strong>Why errors all of a sudden?</strong></p>
<p>Recently, the following Security Update KB 2494001, <a href="http://support.microsoft.com/kb/2494001" rel="nofollow">http://support.microsoft.com/kb/2494001</a> and the June 2011 cumulative update for SharePoint 2010 has updated the timeout for the Data Form web part and the web parts that inherit from the Data Form web part.</p>
<p>Basically farms that have recently been upgraded with cumulative updates might find these issues.</p>
<p><strong>Possible Solution<br />
</strong></p>
<p>The only workaround for the web parts timing out is to apply one of the solutions listed in KB 2639184, released by Microsoft.</p>
<p><a href="http://support.microsoft.com/kb/2639184">http://support.microsoft.com/kb/2639184</a></p>
<p>There are 3 solutions provided in this article and I believe the 3rd solution would be an ideal solution for large Data Form XSLT transformations. Here are the details -</p>
<p>1.) Sub class the DataForm Web Part. Override the following methods. Then Deploy the assembly.<br />
<strong>Example:</strong></p>
<pre class="brush: csharp; title: ; notranslate">
 public class customDFWP : DataFormWebPart
    {
        public override bool IsGhosted
        {
            get
            {
                return true;
            }
        }
        public override bool CanHaveServerControls
        {
            get
            {
                return true;
            }
        }
    }
</pre>
<p>2.) Add a safe control entry to the web.config<br />
<strong>Example:</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;SafeControl Assembly=&quot;customDFWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=963f869a440db619&quot; Namespace=&quot;customDFWP&quot; TypeName=&quot;*&quot; Safe=&quot;True&quot; AllowRemoteDesigner=&quot;True&quot; SafeAgainstScript=&quot;False&quot;/&gt;
</pre>
<p>3.) Add the following to the &lt;tagMapping&gt; element of the web.config<br />
<strong>Example:</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;add tagType=&quot;Microsoft.SharePoint.WebPartPages.DataFormWebPart, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; mappedTagType=&quot;customDFWP.customDFWP, customDFWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=963f869a440db619&quot; /&gt;
</pre>
<p>4.) Register the assembly on the form page.<br />
<strong>Example: </strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;%@ Register tagprefix=&quot;customDFWP&quot; namespace=&quot;customDFWP&quot; assembly=&quot;customDFWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=963f869a440db619&quot;&gt;
</pre>
<p>5.) On the form page find &lt;WebPartPages:DataFormWebPart &gt; and replace it with the new custom tag.<br />
<strong>Example</strong>:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;customDFWP:customDFWP&gt;
</pre>
<p>Again, if nothing goes right remove the Data Form web part and try to accommodate the same logic differently, may be using a custom web part with css.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/12/07/error-with-dataform-web-part-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Follow us in Facebook and Twitter</title>
		<link>http://allaboutmoss.com/2011/11/30/follow-us-in-facebook-and-twitter/</link>
		<comments>http://allaboutmoss.com/2011/11/30/follow-us-in-facebook-and-twitter/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 19:39:02 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=734</guid>
		<description><![CDATA[We have a new Facebook page. If you have any questions, comments or suggestions, please like allaboutmoss and start a conversation. You can also follow us in Twitter @allaboutmoss. &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>We have a new Facebook page. If you have any questions, comments or suggestions, please like <a href="http://www.facebook.com/pages/All-about-MOSS/199061146841686">allaboutmoss</a> and start a conversation.</p>
<p>You can also follow us in Twitter <a href="http://twitter.com/allaboutmoss">@allaboutmoss</a>.</p>
<p>&nbsp;</p>
<p>&nbsp;<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/11/30/follow-us-in-facebook-and-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Workflow history list never gets deleted</title>
		<link>http://allaboutmoss.com/2011/11/21/sharepoint-workflow-history-list-never-gets-deleted/</link>
		<comments>http://allaboutmoss.com/2011/11/21/sharepoint-workflow-history-list-never-gets-deleted/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 05:39:38 +0000</pubDate>
		<dc:creator>Deepu Nair</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[workflows]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=696</guid>
		<description><![CDATA[This post will help to understand the different issues and solutions with workflow history stored in MOSS 2007 and SharePoint 2010. There are organizations were numerous workflows are created that are developed using, either out of the box features or SharePoint Designer or Visual Studio developed or even third party tools like Nintex or K2. [...]]]></description>
			<content:encoded><![CDATA[<p>This post will help to understand the different issues and solutions with workflow history stored in MOSS 2007 and SharePoint 2010.</p>
<p>There are organizations were numerous workflows are created that are developed using, either out of the box features or SharePoint Designer or Visual Studio developed or even third party tools like Nintex or K2.</p>
<p><strong>What is a workflow ? </strong>- A workflow is comprised of a sequence of events such as workflow initiation, task creation, and task completion. When you add a workflow, you specify a task list and history list that workflow instances of that workflow association will use to track the events for the workflow. The task list contains the items that users interact with and enter data into while interacting with the workflow. The workflow history contains key information about each event including date, status, participant, and description.</p>
<p><strong>Workflow history list &#8211; </strong>This is a hidden list in all SharePoint sites and this could be accessed by appending /Lists/Workflow History/ to the address of the SharePoint site. Many of the organisations would like to keep these lists as long as possible to maintain as a backup for the workflows created. But what about the bulk amount of database space that it occupies?</p>
<p><strong>Workflow Auto Cleanup timer job</strong> &#8211; The Workflow history list is deleted by default using the Workflow Auto Cleanup job. This job should delete all workflow instances and related task entries that exist 60 days after the workflow is completed or cancelled. Thank God!!! All those unwanted entries could be deleted automatically by running the timer job. If you wish to keep the workflow history list, it could be done by disabling the timer job. Go to <strong>Central Admin -&gt; Operations Tab (SharePoint 2007) -&gt; Timer job definitions</strong> -&gt; Find the timer job, click open and just disable.</p>
<p>There are also patches available from Microsoft technical support to increase the number of days from 60 to a larger number, thus increasing the amount of time that the workflow histories could be retained - <a href="http://blogs.msdn.com/b/nishand/archive/2007/09/10/changing-the-spworkflowassociation-autocleanupdays-property.aspx">http://blogs.msdn.com/b/nishand/archive/2007/09/10/changing-the-spworkflowassociation-autocleanupdays-property.aspx</a></p>
<h2><strong>Workflow history list never gets deleted</strong></h2>
<p>Wonder why the database space is still getting eaten up even though the workflow history list are scheduled for auto cleanup. Recently there was an <a title="Cleanup workflow" href="http://code.msdn.microsoft.com/Cleanup-Workflow-History-cee6e75e" target="_blank">msdn post</a> which described that even though the timer job is enabled, the Workflow history lists are infact not getting deleted. As the post explains, <em><strong>Workflow history items themselves are not deleted</strong>, </em>but the entry point to view them on the status page for a particular instance will no longer be available.</p>
<p>The post has a code sample that could be used to actually delete all the Workflow history list items. Those who would be running workflows on K2 or Nintex could also check with the vendors, how these lists are managed by them.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/11/21/sharepoint-workflow-history-list-never-gets-deleted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAML Viewer Web Part</title>
		<link>http://allaboutmoss.com/2011/11/20/caml-viewer-web-part/</link>
		<comments>http://allaboutmoss.com/2011/11/20/caml-viewer-web-part/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 20:16:16 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[CAML query]]></category>
		<category><![CDATA[internal name]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=710</guid>
		<description><![CDATA[One of the easier ways of creating CAML query is by creating the required view and then creating Query from it. CAML Viewer makes it even more simpler. CAML Viewer lets you view CAML query for Views and it also shows internal names for all fields. I developed this using SharePoint client object model and [...]]]></description>
			<content:encoded><![CDATA[<p>One of the easier ways of creating CAML query is by creating the required view and <a href="http://allaboutmoss.com/2011/02/11/complex-caml-queries-made-simple/">then creating Query from it</a>.</p>
<p><a href="http://camlviewer.codeplex.com/" target="_blank">CAML Viewer</a> makes it even more simpler. CAML Viewer lets you view CAML query for Views and it also shows internal names for all fields.</p>
<p><img class="alignnone" src="http://i3.codeplex.com/Download?ProjectName=camlviewer&amp;DownloadId=305596" alt="" width="402" height="496" /></p>
<p>I developed this using SharePoint client object model and you can download the source code from <a href="http://camlviewer.codeplex.com/SourceControl/list/changesets" target="_blank">here</a>.</p>
<p>I am planning to add more features soon. If you have a suggestion or comment, please add it to the <a href="http://camlviewer.codeplex.com/discussions" target="_blank">Discussion page</a>.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/11/20/caml-viewer-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recycle Bin Search WebPart for Sharepoint</title>
		<link>http://allaboutmoss.com/2011/11/04/recycle-bin-search-webpart-for-sharepoint/</link>
		<comments>http://allaboutmoss.com/2011/11/04/recycle-bin-search-webpart-for-sharepoint/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 10:48:52 +0000</pubDate>
		<dc:creator>Shoban</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Search]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=686</guid>
		<description><![CDATA[In this article we will see how we can develop a simple Visual WebPart which can be used to search Recycle Bin in Sites and Sub Sites using SPRecycleBinItemCollection and SPRecycleBinQuery.  1. Fire up Visual Studio and create a new Visual WebPart project. 2. Add a TextBox (txtTitle), Button (btnGo) and Div (results) to show our [...]]]></description>
			<content:encoded><![CDATA[<p>In this article we will see how we can develop a simple Visual WebPart which can be used to search Recycle Bin in Sites and Sub Sites using <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.sprecyclebinitemcollection.aspx">SPRecycleBinItemCollection</a> and <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.sprecyclebinquery.aspx">SPRecycleBinQuery</a>. </p>
<p>1. Fire up Visual Studio and create a new Visual WebPart project.</p>
<p>2. Add a <strong>TextBox (txtTitle)</strong>, <strong>Button (btnGo) </strong>and <strong>Div (results)</strong> to show our results.</p>
<p>3. Add the following code the <strong>Click</strong> event of the button</p>
<pre class="brush: csharp; title: ; notranslate">
//Clear Results Table
results.InnerHtml = &quot;&quot;;
SPSecurity.RunWithElevatedPrivileges(delegate()
	{
        using (SPSite site = new SPSite(&quot;You Site URL&quot;))
        	{
               SPRecycleBinQuery query = new SPRecycleBinQuery();
               query.ItemCollectionPosition = SPRecycleBinItemCollectionPosition.FirstPage;
               query.IsAscending = true;
               query.ItemState = SPRecycleBinItemState.FirstStageRecycleBin;
               query.RowLimit = 100;
               query.OrderBy = SPRecycleBinOrderBy.Title;
               SPRecycleBinItemCollection binItems = site.GetRecycleBinItems(query);

               //Filter Items where Title Maches the search text
               var filteredItems = from i in binItems.OfType&lt;SPRecycleBinItem&gt;()
                                   where i.ItemType == SPRecycleBinItemType.File &amp;&amp; i.Title.ToUpper().Contains(txtTitle.Text.ToUpper())
                                   select i;

                results.InnerHtml = &quot;&lt;table class='SearchTable' width='100%'&gt;&quot;;
                if (filteredItems != null &amp; filteredItems.Count() &gt; 0)
                    {
                        results.InnerHtml += &quot;&lt;th&gt;Search Results&lt;/th&gt;&quot;;
                        foreach (var item in filteredItems)
                        {
                            results.InnerHtml += &quot;&lt;tr&gt;&lt;td colspan='3'&gt;&quot; + item.Title + &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;
                        }
                    }
                    else
                    {
			results.InnerHtml += &quot;&lt;tr&gt;&lt;td colspan='3'&gt;No Results found!&lt;/td&gt;&lt;/tr&gt;&quot;;
	           }
      results.InnerHtml += &quot;&lt;/table&gt;&quot;;
                }
      });
</pre>
<p>4. Build and Deploy the WebPart. Below is a screenshot of this Web Part in action.<br />
<a href="http://allaboutmoss.com/wp-content/uploads/2011/11/screen.png" rel="lightbox[686]" title="screen"><img class="alignnone size-full wp-image-689" title="screen" src="http://allaboutmoss.com/wp-content/uploads/2011/11/screen.png" alt="" width="369" height="300" /></a><br />
This is a simple example of how we can use c# to query Recycle Bin. We can improve this Web Part by adding <strong>Error Handling</strong>, <strong>Delete</strong> <strong>Permanently</strong> or <strong>Restore</strong> options etc.</p>
<p>Post inspired by this question in SharePoint.Stackexchange.com : <a href="http://sharepoint.stackexchange.com/questions/11005/is-it-possible-to-search-the-recycle-bins/11007#11007">http://sharepoint.stackexchange.com/questions/11005/is-it-possible-to-search-the-recycle-bins/11007#11007</a><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/11/04/recycle-bin-search-webpart-for-sharepoint/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Back up and Restore of Site collections into different farms</title>
		<link>http://allaboutmoss.com/2011/10/29/back-up-and-restore-of-site-collections-into-different-farms/</link>
		<comments>http://allaboutmoss.com/2011/10/29/back-up-and-restore-of-site-collections-into-different-farms/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 14:19:38 +0000</pubDate>
		<dc:creator>Deepu Nair</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[backup restore]]></category>

		<guid isPermaLink="false">http://allaboutmoss.com/?p=661</guid>
		<description><![CDATA[This post would describe how conventionally a SharePoint site is backed up from one farm and restored into another farm where the SharePoint farm versions could be different. I was having a difficult situation when my site collection restore gave me this error. It basically describes that the backup of the web application that I took [...]]]></description>
			<content:encoded><![CDATA[<p>This post would describe how conventionally a SharePoint site is backed up from one farm and restored into another farm where the SharePoint farm versions could be different.</p>
<p>I was having a difficult situation when my site collection restore gave me this error.</p>
<p><a href="http://allaboutmoss.com/wp-content/uploads/2011/10/11.jpg" rel="lightbox[661]" title="1"><img class="alignnone size-medium wp-image-664" title="1" src="http://allaboutmoss.com/wp-content/uploads/2011/10/11-300x130.jpg" alt="" width="300" height="130" /></a></p>
<p>It basically describes that the backup of the web application that I took was running on a farm with a different SharePoint version. I checked and verified that both had SharePoint 2010 and had SP1 installed recently.</p>
<p>Follow the steps to resolve this problem.</p>
<p>1. Make sure that the farm versions are the same. This can be achieved by going to <strong>Central Administration &#8211; &gt; System Settings -&gt; Manage Servers in this farm</strong></p>
<p><a href="http://allaboutmoss.com/wp-content/uploads/2011/10/farm_vers.jpg" rel="lightbox[661]" title="farm_vers"><img class="alignnone size-full wp-image-679" title="farm_vers" src="http://allaboutmoss.com/wp-content/uploads/2011/10/farm_vers.jpg" alt="" width="300" height="148" /></a></p>
<p>2. Checking the Farm versions in the different farms, I was able to find that the SharePoint farm versions were different.</p>
<p>3. I started the SharePoint Configuration wizard on the first server and I could see that there were some changes happening. This could be the step many of us could miss. We need to run the SharePoint Configuration wizard after an SP1 upgrade.</p>
<p>4. I did the same for both the farms and noticed that the Farm versions were the same now.</p>
<p>5. I then did a backup of the site collection using stsadm from the first farm and restored into the second farm. Everything went right this time.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutmoss.com/2011/10/29/back-up-and-restore-of-site-collections-into-different-farms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

