<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>dotNet &#38; SharePoint</title>
	<atom:link href="http://hharkema.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hharkema.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 25 May 2011 08:35:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hharkema.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>dotNet &#38; SharePoint</title>
		<link>http://hharkema.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hharkema.wordpress.com/osd.xml" title="dotNet &#38; SharePoint" />
	<atom:link rel='hub' href='http://hharkema.wordpress.com/?pushpress=hub'/>
		<item>
		<title>(do not)restart search during full crawl</title>
		<link>http://hharkema.wordpress.com/2011/04/26/do-notrestart-search-during-full-crawl/</link>
		<comments>http://hharkema.wordpress.com/2011/04/26/do-notrestart-search-during-full-crawl/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 10:00:54 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://hharkema.wordpress.com/2011/04/26/do-notrestart-search-during-full-crawl/</guid>
		<description><![CDATA[While I was troubleshooting an issue for a customer I restarted the search services while a full crawl was running. I didn’t expect this to be a problem because this can happen. Which server admin will check if a full crawl is running before he restarts a server because he has installed some hotfixes? But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=90&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While I was troubleshooting an issue for a customer I restarted the search services while a full crawl was running. I didn’t expect this to be a problem because this can happen. Which server admin will check if a full crawl is running before he restarts a server because he has installed some hotfixes?</p>
<p>But after restarting the search services I received the error “search is offline” in the Search admin. An other symptom was that all crawls would keep on running. Even the people content source was running for more than 112 hours (after a weekend).</p>
<p>After some googling I found that I wasn’t the only one with this problem. Some resolved it by reconfiguring the search service account. Others deleted the ShareService provider and recreated it…</p>
<p>Fortunately I could resolve the issue by resetting the search index. After this everything worked fine again.</p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=90&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2011/04/26/do-notrestart-search-during-full-crawl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>
	</item>
		<item>
		<title>Sourcecode formatting in wordpress</title>
		<link>http://hharkema.wordpress.com/2011/04/22/sourcecode-formatting-in-wordpress/</link>
		<comments>http://hharkema.wordpress.com/2011/04/22/sourcecode-formatting-in-wordpress/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 09:46:08 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/?p=74</guid>
		<description><![CDATA[This is a reminder for myself for future blogsposts. Sourcecode formatting can be done by putting the code in: [sourcecode language="csharp"] void main(void) { } [/sourcecode] And this will become: Supported languages are: cpp csharp javascript powershell sql xml css The complete list and help is at: http://en.support.wordpress.com/code/posting-source-code/ Filed under: SharePoint<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=74&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a reminder for myself for future blogsposts. Sourcecode formatting can be done by putting the code in:</p>
<pre>[<strong>sourcecode</strong> language="csharp"]
void main(void)
{
}
[/<strong>sourcecode</strong>]</pre>
<p>And this will become:</p>
<pre class="brush: csharp;">
void main(void)
{
}
</pre>
<p>Supported languages are:</p>
<ul>
<li>
<pre style="display:inline!important;">cpp</pre>
</li>
<li>
<pre style="display:inline!important;">csharp</pre>
</li>
<li>
<pre style="display:inline!important;">javascript</pre>
</li>
<li>
<pre style="display:inline!important;">powershell</pre>
</li>
<li>
<pre style="display:inline!important;">sql</pre>
</li>
<li>
<pre style="display:inline!important;">xml</pre>
</li>
<li>
<pre style="display:inline!important;">css</pre>
</li>
</ul>
<pre>The complete list and help is at: <a href="http://en.support.wordpress.com/code/posting-source-code/">http://en.support.wordpress.com/code/posting-source-code/</a></pre>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=74&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2011/04/22/sourcecode-formatting-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://hharkema.wordpress.com/2011/01/02/2010-in-review/</link>
		<comments>http://hharkema.wordpress.com/2011/01/02/2010-in-review/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 10:30:48 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/?p=70</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter™ reads Minty-Fresh™. Crunchy numbers A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 3,000 times in 2010. That&#8217;s about 7 full 747s. &#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=70&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy.gif" alt="Healthy blog!" width="250" height="183" /></p>
<p>The <em>Blog-Health-o-Meter™</em> reads Minty-Fresh™.</p>
<h2>Crunchy numbers</h2>
<p><a href="http://hharkema.files.wordpress.com/2010/01/image_thumb.png"><img style="max-height:230px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;" src="http://hharkema.files.wordpress.com/2010/01/image_thumb.png?w=288" alt="Featured image" /></a></p>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>3,000</strong> times in 2010.  That&#8217;s about 7 full 747s.</p>
<p>&nbsp;</p>
<p>In 2010, there were <strong>4</strong> new posts, growing the total archive of this blog to 16 posts. There were <strong>13</strong> pictures uploaded, taking up a total of 1mb. That&#8217;s about a picture per month.</p>
<p>The busiest day of the year was October 26th with <strong>29</strong> views. The most popular post that day was <a style="color:#08c;" href="http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/">Migrate SP2007 to SP2010, first impression</a>.</p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>google.co.in</strong>, <strong>google.com</strong>, <strong>bigextracash.com</strong>, <strong>statistics.bestproceed.com</strong>, and <strong>google.com.sg</strong>.</p>
<p>Some visitors came searching, mostly for <strong>spcontext.current.site</strong>, <strong>spcontext.current.web</strong>, <strong>spcontext.current.site.openweb</strong>, <strong>sharepoint in dotnet</strong>, and <strong>spcontext.current.web.lists</strong>.</p>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<p>1. <a style="margin-right:10px;" href="http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/">Migrate SP2007 to SP2010, first impression</a> <span style="color:#999;font-size:8pt;">January 2010</span></p>
<p>2. <a style="margin-right:10px;" href="http://hharkema.wordpress.com/2009/09/21/spcontext-current-web-or-spcontext-current-site-openweb/">SPContext.Current.Web or SPContext.Current.Site.OpenWeb()?</a> <span style="color:#999;font-size:8pt;">September 2009</span></p>
<p>3. <a style="margin-right:10px;" href="http://hharkema.wordpress.com/2009/04/22/some-tests-with-biztalk-2006r2-wss-adapter/">Some tests with BizTalk 2006R2 WSS adapter</a> <span style="color:#999;font-size:8pt;">April 2009</span></p>
<p>4. <a style="margin-right:10px;" href="http://hharkema.wordpress.com/2010/02/02/move-favorites-to-dropbox/">Move favorites to Dropbox</a> <span style="color:#999;font-size:8pt;">February 2010</span></p>
<p>5. <a style="margin-right:10px;" href="http://hharkema.wordpress.com/2009/02/16/processbatchdata-can-be-buggy/">ProcessBatchData can be buggy</a> <span style="color:#999;font-size:8pt;">February 2009</span></p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=70&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2011/01/02/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/01/image_thumb.png?w=288" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>CAML IsNull and indexed columns</title>
		<link>http://hharkema.wordpress.com/2010/12/08/caml-isnull-and-indexed-columns/</link>
		<comments>http://hharkema.wordpress.com/2010/12/08/caml-isnull-and-indexed-columns/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 18:10:18 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://hharkema.wordpress.com/2010/12/08/caml-isnull-and-indexed-columns/</guid>
		<description><![CDATA[Today I had a strange issue with a CAML query that (“suddenly”) didn’t return the correct results anymore. The CAML query used an IsNull check and none of the items for which the specified field was empty was returned. The query was the same as all the examples on the internet and besides that the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=66&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I had a strange issue with a CAML query that (“suddenly”) didn’t return the correct results anymore. The CAML query used an IsNull check and none of the items for which the specified field was empty was returned. The query was the same as all the examples on the internet and besides that the query did work perfectly in the past.</p>
<p>The query I used was:</p>
<p><a href="http://hharkema.files.wordpress.com/2010/12/2010-12-07_1554.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:5px;" title="2010-12-07_1554" border="0" alt="2010-12-07_1554" src="http://hharkema.files.wordpress.com/2010/12/2010-12-07_1554_thumb.png?w=249&#038;h=94" width="249" height="94" /></a></p>
<p>After some Googling I suddenly realized that a few weeks ago I turned on indexing for some columns in the list. This was part of troubleshooting performance issues with this list, see also the previous post. Activating indexing for some columns didn’t resolve the performance issues (something else did) but I thought indexing is always good. </p>
<p>But it isn’t… After removing the specified column (Thema) from the index the CAML query worked fine again!</p>
<p>By the way: this isn’t only a problem for custom CAML queries. Also views that are configured to show only items with empty values won’t show the correct results.</p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=66&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2010/12/08/caml-isnull-and-indexed-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/12/2010-12-07_1554_thumb.png" medium="image">
			<media:title type="html">2010-12-07_1554</media:title>
		</media:content>
	</item>
		<item>
		<title>Be aware of SPList.Items</title>
		<link>http://hharkema.wordpress.com/2010/11/25/be-aware-of-splist-items/</link>
		<comments>http://hharkema.wordpress.com/2010/11/25/be-aware-of-splist-items/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 16:18:29 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://hharkema.wordpress.com/2010/11/25/be-aware-of-splist-items/</guid>
		<description><![CDATA[Today I received an issue from a customer that a webpart was very slow. With the webpart the end user can select multiple documents and download these in one zip file. Over the last few years the document library that this webpart was connected to was gradually filled with documents. Currently there are about 12000 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=63&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I received an issue from a customer that a webpart was very slow. With the webpart the end user can select multiple documents and download these in one zip file.</p>
<p>Over the last few years the document library that this webpart was connected to was gradually filled with documents. Currently there are about 12000 items. This shouldn’t be a problem for SharePoint but downloading and zipping 20 documents of 100kb took about 3 minutes…</p>
<p>Diving in the code that was written some years ago I discovered that the SPList.Items was frequently used. After some Googling I found out that when the Items property of a list is accessed ALL items are retrieved from the database! Any additional function will be performed after the complete set is retrieved. </p>
<p>So when for example the following code is used:</p>
<p><a href="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1708.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:5px;" title="2010-11-25_1708" border="0" alt="2010-11-25_1708" src="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1708_thumb.png?w=446&#038;h=31" width="446" height="31" /></a></p>
<p>all items are retrieved from the database and then the item with id 100 is returned. When this code is changed to:</p>
<p><a href="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1710.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:5px;" title="2010-11-25_1710" border="0" alt="2010-11-25_1710" src="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1710_thumb.png?w=389&#038;h=34" width="389" height="34" /></a></p>
<p>Only the item with id 100 is returned.</p>
<p>Changing this resulted in a performance gain from 3 minutes to 1.8 second!</p>
<p>Cool…</p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=63&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2010/11/25/be-aware-of-splist-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1708_thumb.png" medium="image">
			<media:title type="html">2010-11-25_1708</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/11/2010-11-25_1710_thumb.png" medium="image">
			<media:title type="html">2010-11-25_1710</media:title>
		</media:content>
	</item>
		<item>
		<title>Move favorites to Dropbox</title>
		<link>http://hharkema.wordpress.com/2010/02/02/move-favorites-to-dropbox/</link>
		<comments>http://hharkema.wordpress.com/2010/02/02/move-favorites-to-dropbox/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:49:27 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[CPP]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/2010/02/02/move-favorites-to-dropbox/</guid>
		<description><![CDATA[Today I wanted to move my Internet Explorer favorites to My Dropbox folder. Dropbox is a very handy and free tool to synchronize files across several computers using the internet. All files are also stored by Dropbox so there is always a backup (see www.dropbox.com). Saving my favorites to the Dropbox folder ensures that I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=51&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to move my Internet Explorer favorites to My Dropbox folder. Dropbox is a very handy and free tool to synchronize files across several computers using the internet. All files are also stored by Dropbox so there is always a backup (see <a href="http://www.dropbox.com">www.dropbox.com</a>). Saving my favorites to the Dropbox folder ensures that I have always my bookmarks available on all computers. After a quick search on Google I found a registry key that should be changed and that should do the trick. But it didn’t… I’m using Windows 7 and Internet Explorer 8 and probably this is the reason why it didn’t work. Also regedit warned me not to edit the entries manually, see screenshot:</p>
<p><a href="http://hharkema.files.wordpress.com/2010/02/image.png"><img style="display:inline;border-width:0;" title="image" src="http://hharkema.files.wordpress.com/2010/02/image_thumb.png?w=728&#038;h=357" border="0" alt="image" width="728" height="357" /></a></p>
<p>So I decided to use the regedit preferred method but instead of SHGetKnownFolderPath I used the Set variant. Using Visual Studio I created the following c++ program. (sorry for the image, my code snipped plugin doesn’t work with the current wordpress theme)</p>
<p><a href="http://hharkema.files.wordpress.com/2010/02/image1.png"><img style="display:inline;border:0;" title="image" src="http://hharkema.files.wordpress.com/2010/02/image_thumb1.png?w=459&#038;h=344" border="0" alt="image" width="459" height="344" /></a></p>
<p>This is a console application with one parameter which specified the new path. And this worked!</p>
<p>The compiled executable can be downloaded here: <a href="http://hharkema.files.wordpress.com/2010/02/changefavorites.pdf">ChangeFavorites</a>. It&#8217;s a zip file, so rename to .zip and extract!</p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/cpp/'>CPP</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=51&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2010/02/02/move-favorites-to-dropbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/02/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/02/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Migrate SP2007 to SP2010, first impression</title>
		<link>http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/</link>
		<comments>http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 19:33:42 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/</guid>
		<description><![CDATA[Today I tried a migration of one of the SharePoint 2007 sites I have worked on to SharePoint 2010. I just wanted to perform a quick test, not a full-blown migration scenario. I used the Beta 2 of SharePoint 2010. There are two ways in which a SharePoint 2007 site can be migrated. One of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=48&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I tried a migration of one of the SharePoint 2007 sites I have worked on to SharePoint 2010. I just wanted to perform a quick test, not a full-blown migration scenario. I used the Beta 2 of SharePoint 2010.</p>
<p>There are two ways in which a SharePoint 2007 site can be migrated. One of them is database attach,which I used for this test. I used one of the first SharePoint websites we created so no fancy stuff with features and solutions, every deployment was done manually. </p>
<p>Steps I have performed:</p>
<p>1) Restore a SQL backup of the website in my SharePoint 2010 VPC.</p>
<p>2) Create a web application in SharePoint 2010</p>
<p>3) Attach the restored database to the web application with stsadm –o addcontentdb. Stsadm is a bit old fashion but it does the job. The database is around 600Mb and the stsadm command took about 10 minutes to complete. After 10 minutes it finished and pointed me to a logfile with some (lots) errors and warnings. The most common errors were about:    <br />- features not found     <br />- site template not found     <br />- some custom webparts not found</p>
<p>4) After ignoring all errors I tried to give it a shot. I opened the website in a browser and it asked for logon credentials. But I don’t have any because the backup was from a SharePoint site in a different domain. In the old days I solved this by changing the primary or secondary site collection administrator in Central Admin. But where is this in SharePoint 2010? Couldn’t find it. Therefore I created a policy that my account has full control for the whole web application. That did the trick!</p>
<p>5) After logging on to the site a unclear error message was shown. So I edited the web.config to disable custom errors and show the friendly dotnet yellow screen error. Much better… Next I solved the errors step by step:    <br />- put custom created dll’s in de bin of the web application     <br />- put safecontrols in the web.config     <br />- put AppSettings in the web.config</p>
<p>6) Finally I got some errors about files it couldn’t find in a 1043 folder… Right I forgot, I took the backup from a Dutch site. And there isn’t a Dutch language pack for SharePoint 2010 yet. So I copied the 1033 folder and renamed it to 1043. </p>
<p>Finished!</p>
<p>And the result looks pretty the same as in SharePoint 2007:</p>
<p><a href="http://hharkema.files.wordpress.com/2010/01/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://hharkema.files.wordpress.com/2010/01/image_thumb.png?w=746&#038;h=511" width="746" height="511" /></a> </p>
<p>The design isn’t pixel perfect everywhere anymore. Perhaps the new core.css meshes this up a bit.</p>
<p>And for some reason the site actions menu doesn’t work. </p>
<p>Perhaps next time I try to implement the new SharePoint 2010 user interface and solve the site actions menu. And I will do some additional testing of the custom features of this site like BDC, custom search webparts, custom people search, Google Maps webpart, etc.</p>
<p>I think this is a nice result for a test that took just a couple of hours. I didn’t change any code (CSharp, masterpage, pagelayout, etc) it just worked!</p>
<br />Filed under: <a href='http://hharkema.wordpress.com/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=48&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2010/01/28/migrate-sp2007-to-sp2010-first-impression/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2010/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>SPContext.Current.Web or SPContext.Current.Site.OpenWeb()?</title>
		<link>http://hharkema.wordpress.com/2009/09/21/spcontext-current-web-or-spcontext-current-site-openweb/</link>
		<comments>http://hharkema.wordpress.com/2009/09/21/spcontext-current-web-or-spcontext-current-site-openweb/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 15:39:39 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/2009/09/21/spcontext-current-web-or-spcontext-current-site-openweb/</guid>
		<description><![CDATA[When programming with SharePoint I usually try to use the SPContext as much as possible in stead of opening a new Web. I assume that opening a new Web will cost more resources then reusing an existing one. But the Web object from the context has some weird behavior. For example adding a property to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=41&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When programming with SharePoint I usually try to use the SPContext as much as possible in stead of opening a new Web. I assume that opening a new Web will cost more resources then reusing an existing one.</p>
<p>But the Web object from the context has some weird behavior. For example adding a property to the property bag doesn’t always succeed:</p>
<pre class="brush: csharp;">
SPContext.Current.Web.Properties.Add[&quot;MyKey&quot;] = &quot;MyValue&quot;;
SPContext.Current.Web.Properties.Update();
SPContext.Current.Web.Update(); // just to be sure ;-)
</pre>
<p>This code will execute successfully and for the lifecycle of the program the property is available but when a new instance tries to access the property it isn’t there anymore.</p>
<div>Another example is reading the number of ViewFields of a list view:</div>
<pre class="brush: csharp;">
int count = SPContext.Current.Web.Lists[&quot;MyList&quot;].Views[&quot;All Items&quot;].ViewFields.Count;
</pre>
<p style="display:inline!important;">This line of code will work on some sites but not on all sites… On some sites it will show the actual number of fields while other sites have a count of 2 and only the fields Attachments and Title.</p>
<p>Changing the code will always return the correct fields:</p>
<pre class="brush: csharp;">
using (SPWeb spWeb = SPContext.Current.Site.OpenWeb(SPContext.Current.Web.ServerRelativeUrl))
{
SPList myList = spWeb.Lists[&quot;MyList&quot;];
int count = myList.Views[&quot;All Items&quot;].ViewFields.Count;
}
</pre>
<p>Strange… after three years of SharePoint programming I have never encountered this issue. And now I have solved two issues with it on the same day.</p>
<br />Posted in SharePoint  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=41&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2009/09/21/spcontext-current-web-or-spcontext-current-site-openweb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>
	</item>
		<item>
		<title>SPBuildInFieldId</title>
		<link>http://hharkema.wordpress.com/2009/05/05/spbuildinfieldid/</link>
		<comments>http://hharkema.wordpress.com/2009/05/05/spbuildinfieldid/#comments</comments>
		<pubDate>Tue, 05 May 2009 15:02:31 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/2009/05/05/spbuildinfieldid/</guid>
		<description><![CDATA[One of the lesser used (not used?) classes in SharePoint is the SPBuildInFieldId class. It contains the GUID’s of all default SharePoint fields. So in stead of using something like this: string title = item["Title"].ToString(); It’s better to use this: string title = item[SPBuiltInFieldId.Title].ToString(); This way your code is language independent. And if Microsoft for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=39&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the lesser used (not used?) classes in SharePoint is the SPBuildInFieldId class. It contains the GUID’s of all default SharePoint fields. </p>
<p>So in stead of using something like this:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:eba25d39-2990-4f82-9cbe-e70f4497c4b2" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#0000FF;">string</span><span style="color:#000000;"> title </span><span style="color:#000000;">=</span><span style="color:#000000;"> item[</span><span style="color:#800000;">"</span><span style="color:#800000;">Title</span><span style="color:#800000;">"</span><span style="color:#000000;">].ToString();</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>It’s better to use this:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:72a725b5-1e39-400f-951e-b642d02097b7" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;white-space:pre-wrap;overflow:auto;"><span style="color:#0000FF;">string</span><span style="color:#000000;"> title </span><span style="color:#000000;">=</span><span style="color:#000000;"> item[SPBuiltInFieldId.Title].ToString();</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<p>This way your code is language independent. And if Microsoft for some reason decides to rename a field (probably not) your code still works.</p>
<p>There are currently only 4 hits when I Google for SPBuildInFieldId. Perhaps soon there will be 5…</p>
<br />Posted in SharePoint  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=39&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2009/05/05/spbuildinfieldid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>
	</item>
		<item>
		<title>Some tests with BizTalk 2006R2 WSS adapter</title>
		<link>http://hharkema.wordpress.com/2009/04/22/some-tests-with-biztalk-2006r2-wss-adapter/</link>
		<comments>http://hharkema.wordpress.com/2009/04/22/some-tests-with-biztalk-2006r2-wss-adapter/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:50:06 +0000</pubDate>
		<dc:creator>Harold</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://hharkema.wordpress.com/2009/04/22/some-tests-with-biztalk-2006r2-wss-adapter/</guid>
		<description><![CDATA[Test environment I have installed BizTalk 2006 R2 and WSS 2.0 and WSS 3.0 side by side on one VPC. The goal is to test the default behavior of the adapter. With the help of some custom orchestrations/pipelines/etc a lot more is possible. WSS Adapter as send port This is for sending messages from BizTalk [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=38&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Test environment<br />
</h2>
<p>I have installed BizTalk 2006 R2 and WSS 2.0 and WSS 3.0 side by side on one VPC.
</p>
<p>The goal is to test the default behavior of the adapter. With the help of some custom orchestrations/pipelines/etc a lot more is possible.
</p>
<h2>WSS Adapter as send port<br />
</h2>
<p>This is for sending messages from BizTalk into SharePoint.
</p>
<h3>Send a Word document (or binary file) to a document library<br />
</h3>
<p>Configuration: FILE receive port with pass trough pipeline. WSS send port with pass trough pipeline and a filter on the receive port.
</p>
<p>When a document is put in the receive location it is send to the document library in WSS 3.0. So far so good. Now I want to give it a nice filename instead of something like Msg-534d8936-34d3-40ac-8541-6b35457cbbb0. In BizTalk it is possible to use several macros and XPATH queries to generate a filename. But this is a Word document so XPATH queries won&#8217;t work here. So were bound to using macros. Out of the box there are the following macros: MessageID (GUID),  SendingOrchestrationID (GUID), SendingOrchestrationType, Filename. The macros aren&#8217;t very helpful because they all end up with not human friendly names. The Filename macro creates by default something like Msg-534d8936-34d3-40ac-8541-6b35457cbbb0.
</p>
<p>But the filename doesn&#8217;t have to be a real issue. SharePoint can automatically map document properties to list columns. If for example there is a document property Title and a document property Keywords and a list column Title and a list column Keywords then SharePoint fill them in with the correct values:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi1.png?w=650">
	</p>
<p>Or with custom properties like this Excel document (TotalCosts):
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi2.png?w=650">
	</p>
<p>
 </p>
<p>But with generated filenames with GUID&#8217;s it isn&#8217;t possible to overwrite (or update) documents:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi3.png?w=650">
	</p>
<p>
 </p>
<p>Possible solutions are to create some additional BizTalk artifacts which set the WSS.Filename property. For example this can be done from an orchestration or a pipeline. Or this can be resolved by creating a SharePoint workflow which will be activated for each new document and rename the document to for example %title%.doc.
</p>
<h3>Create list item in custom list<br />
</h3>
<p>Configuration: File receive port with XML pipeline. WSS send port with XML pipeline and a filter on the receive port and some values of the XML are mapped with the XPATH macro to the columns in the SharePoint custom list. Create and deploy a BizTalk assembly with the schema of the XML.
</p>
<p>When an XML is put in the receive location a new list item is created in the custom list with the mapped values. The XML message itself is gone. A maximum of 16 columns can be mapped to the XML message.
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi4.png?w=650">
	</p>
<p>It&#8217;s not possible to perform updates. A possible solution for updating items is described in the next test.
</p>
<h3>Create list item in document library<br />
</h3>
<p>Configuration: File receive port with XML pipeline. WSS send port with XML pipeline and a filter on the receive port and some values of the XML are mapped with the XPATH macro to the columns in the SharePoint document library. Create and deploy a BizTalk assembly with the schema of the XML.
</p>
<p>When an XML is put in the receive location a new list item is created in the document library with the mapped values. The XML message itself is also saved in the document library. A maximum of 16 columns can be mapped to the XML message. Because we are using xml we can do some nice stuff for generating filenames. For example the information inside the XML can be used. This way the filenames are predictable and BizTalk can overwrite list items.
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi5.png?w=650">
	</p>
<p>And after an update (overwrite):
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi6.png?w=650">
	</p>
<h3>Document library settings<br />
</h3>
<p>What is the influence of some document library settings which can potentially block BizTalk from creating or updating list items?
</p>
<p><em>User has checked out a list item:</em> BizTalk can&#8217;t update the list item. The message will be suspended (resumable) in BizTalk. After the user checks in the document the message can be resumed in BizTalk and the list item will be updated.
</p>
<p><em>List setting -Require content approval for submitted items:</em> BizTalk will create a new list item with the status pending.
</p>
<p><em>List setting -Require documents to be checked out before they can be edited:</em> Hmm… nothing happens! Apparently BizTalk can&#8217;t deliver the Message. But the message doesn&#8217;t appear in BizTalk as suspended. So the message is lost… Or not! BizTalk <strong>does</strong> send the document to the document library. But BizTalk hasn&#8217;t checked the document in. When I logon to the SharePoint site with the BizTalk service account the document is shown but checked out to the BizTalk service account.
</p>
<p><em>List setting -Create major and minor (draft) versions:</em> BizTalk creates a minor version. Or to be more specific two minor versions. The 1<sup>st</sup> version only contains the message. The second version adds the metadata to the columns:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi7.png?w=650">
	</p>
<p><em>List setting -Create major versions:</em> Same as the previous one. But now with major versions:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi8.png?w=650">
	</p>
<p>Now let&#8217;s update a list item and then check the version history:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi9.png?w=650">
	</p>
<p>The list item is updated. But there is no version history! Also interesting is that the title field is a generated name instead of the friendly name we have specified.
</p>
<h2>WSS Adapter as receive port<br />
</h2>
<p>This is for reading messages from SharePoint.
</p>
<h3>Read from a document library<br />
</h3>
<p>Configuration: WSS Receive port with pass through pipeline. FILE Send port with pass through pipeline and filter on receive port.
</p>
<p>BizTalk polls the document library at a specified interval. When a document is uploaded to the document library BizTalk reads it from the document library and deletes it.
</p>
<p>There are some configuration settings for the read port:
</p>
<p><em>Archive: </em>BizTalk always deletes the file from the document library after it is processed. But there is an option to archive the document. With these settings BizTalk can copy the document an archive document library.
</p>
<p><em>View name:</em> BizTalk can be configured to read all documents from the document library or only the documents in a specific view. In SharePoint a view can be created to show only documents based on some metadata properties. For example a view that shows only approved documents. If this view is configured then BizTalk will only process approved documents.
</p>
<h3>Read from a custom list<br />
</h3>
<p>This is not supported:
</p>
<p><img src="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi10.png?w=650">
	</p>
<p>
 </p>
<p>
 </p>
<p>
 </p>
<br />Posted in SharePoint  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hharkema.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hharkema.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hharkema.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hharkema.wordpress.com&amp;blog=6478244&amp;post=38&amp;subd=hharkema&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hharkema.wordpress.com/2009/04/22/some-tests-with-biztalk-2006r2-wss-adapter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/05e5abacc3ca7d27e907b2142fe836d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hharkema</media:title>
		</media:content>

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi1.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi2.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi3.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi4.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi5.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi6.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi7.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi8.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi9.png" medium="image" />

		<media:content url="http://hharkema.files.wordpress.com/2009/04/042209-0749-sometestswi10.png" medium="image" />
	</item>
	</channel>
</rss>
