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

<channel>
	<title>Dutton Software &#187; Export to Excel</title>
	<atom:link href="http://www.duttonsoftware.com/tag/export-to-excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.duttonsoftware.com</link>
	<description>Code, plug-ins &#38; more</description>
	<lastBuildDate>Mon, 16 Jan 2012 06:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Duplicates in SharePoint Datasheet view / Export to Spreadsheet (Excel)</title>
		<link>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/</link>
		<comments>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 07:09:32 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[WSS 3.0]]></category>
		<category><![CDATA[Datasheet]]></category>
		<category><![CDATA[duplicates]]></category>
		<category><![CDATA[Export to Excel]]></category>
		<category><![CDATA[Export to Spreadsheet]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.duttonsoftware.com/?p=158</guid>
		<description><![CDATA[Recently I encountered a bug in SharePoint where sometimes duplicate items appear when viewing items in Datasheet view in SharePoint.  This also happens when using the Export to Spreadsheet (Excel).  If duplicates appear in Datasheet view, they will also appear during Export to Spreadsheet and vice versa. This happens only under specific circumstances.  The base [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I encountered a bug in SharePoint where sometimes duplicate items appear when viewing items in Datasheet view in SharePoint.  This also happens when using the Export to Spreadsheet (Excel).  If duplicates appear in Datasheet view, they will also appear during Export to Spreadsheet and vice versa.</p>
<p>This happens only under specific circumstances.  The base list must have a required lookup column/field that is multi-value.  The view must not include this column.</p>
<p>A required, multi-value lookup column is created to demonstrate the problem:<img class="alignnone size-full wp-image-159" title="1-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/1-required-multi-value-lookup-field.jpg" alt="1-required-multi-value-lookup-field" width="747" height="423" /></p>
<p>An example of the list data in standard view, showing the &#8220;Region&#8221; column:<br />
<img class="alignnone size-full wp-image-160" title="2-example-data-showing-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/2-example-data-showing-required-multi-value-lookup-field.jpg" alt="2-example-data-showing-required-multi-value-lookup-field" width="509" height="144" /></p>
<p>I created a new view without the &#8220;Region&#8221; column to show the duplicates bug.  Standard view appears normal:<br />
<img class="alignnone size-full wp-image-161" title="3-view-without-required-multi-value-lookup-field" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/3-view-without-required-multi-value-lookup-field.jpg" alt="3-view-without-required-multi-value-lookup-field" width="509" height="144" /></p>
<p>Same view, but when switched to Datasheet view, duplicate records show:<br />
<img class="alignnone size-full wp-image-162" title="4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items.jpg" alt="4-datasheet-view-without-required-multi-value-lookup-field-shows-duplicate-items" width="202" height="236" /></p>
<p>Same view in Export to Spreadsheet shows duplicates:<br />
<img class="alignnone size-full wp-image-163" title="5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items.jpg" alt="5-export-to-spreadsheet-without-required-multi-value-lookup-field-shows-duplicate-items" width="322" height="195" /></p>
<p>If the column is not required, everything works fine.  If the column exists in the view, everything is fine.  It is only when the required column is omitted from the view that you see duplicates.</p>
<p>If the column is included from the view, everything is normal during Edit in Datasheet mode:<br />
<img class="alignnone size-full wp-image-164" title="6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items.jpg" alt="6-datasheet-view-shows-multi-value-lookup-field-no-duplicate-items" width="496" height="148" /></p>
<p>Duplicates are now gone in Export to Spreadsheet as well:<br />
<img class="alignnone size-full wp-image-165" title="7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates" src="http://www.duttonsoftware.com/wp-content/uploads/2009/01/7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates.jpg" alt="7-export-to-spreadsheet-with-required-multi-value-lookup-field-no-duplicates" width="603" height="116" /></p>
<p>There seems to be no fix for this problem.  The work-around is, if you have a required multi-value lookup column, to always add the column to views, especially datasheet views.  If a user creates their own view without the column, they may run into this problem.  User education is the only solution in this case.</p>
<p>Although this seems like a rare circumstance, it does appear that <a href="http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/a36f7b72-9b4d-4f16-aea8-7d08b1594096/" target="_blank">multiple SharePoint users are encountering this problem</a>.  This affects both WSS 3.0 and MOSS 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.duttonsoftware.com/2009/01/19/duplicates-in-sharepoint-datasheet-view-export-to-spreadsheet-excel/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

