<?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>PowerPivotGeek</title>
	<atom:link href="http://powerpivotgeek.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://powerpivotgeek.com</link>
	<description>An adventure in managed self-service computing</description>
	<lastBuildDate>Sun, 07 Mar 2010 08:31:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What&#8217;s your favorite PowerPivot for SharePoint feature?</title>
		<link>http://powerpivotgeek.com/2010/03/07/whats-your-favorite-powerpivot-for-sharepoint-feature/</link>
		<comments>http://powerpivotgeek.com/2010/03/07/whats-your-favorite-powerpivot-for-sharepoint-feature/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 08:27:18 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Poll]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/03/07/whats-your-favorite-powerpivot-for-sharepoint-feature/</guid>
		<description><![CDATA[<p>Ok. Now is is time for you guys to speak up! Here is a little informal poll. What is your favorite PowerPivot feature? I’ll tell you mine and then I’ll let everyone chime in via the post comments. Join in the fun!</p>
<p>My favorite PowerPivot feature isn’t a feature of PowerPivot at all. I love the [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. Now is is time for you guys to speak up! Here is a little informal poll. What is your favorite PowerPivot feature? I’ll tell you mine and then I’ll let everyone chime in via the post comments. Join in the fun!</p>
<p>My favorite PowerPivot feature isn’t a feature of PowerPivot at all. I love the fact that since we have this ‘document-centric’ view of the data – all of the PowerPivot data is embedded in the workbook itself. This means that all of the build-in SharePoint features automatically apply to PowerPivot as well. Here is a quick list of what comes to mind to me:</p>
<ol>
<li>Check in/out. Users can have an collaborative interaction with the data by using check in/out on the embedded workbook file itself. </li>
<li>An approval workflow. After a check in, or a new posting of the workbook, you can kick off an approval workflow – i.e. you can route the approval around a series of users until the data shows up in the document library. </li>
<li>Document library custom modifications. With SharePoint you can add your own properties to the file and include that in the document library along with everything else. SharePoint becomes a development platform with the PowerPivot workbooks as the basis for the custom changes. All of this is created and managed by end-users themselves. </li>
<li>Automatic retention policies. Since the data is just part of the document, you can have business rules that automatically delete the data. For example, you might have a rule like: “items in this document library are automatically deleted after 180 days” (very appropriate for financial data). </li>
<li>Many of the “data management” activities are not part of the PowerPivot application – but rather end-users do it themselves. If they want to reorganize how the data is stored on their site, then they just copy PowerPivot workbooks to a new place. They don’t have to call up IT – they just do it! If the data no longer applies to their system, they just delete it. The data is the file – the file is the data. </li>
<li>Wastebasket. SharePoint has a built-in wastebasket feature. If you do delete a file, it isn’t really gone. Until the administrator empties the wastebasket, the data still lives on – and the user can copy it back to their document libraries themselves. Again, since the data is the file – you don’t need any special PowerPivot capabilities to do this. </li>
<li>Security is all end-user driven. There is no special security settings for PowerPivot. Since the data is the file, we just use a user’s access rights to the file to determine their access rights to the embedded data. If an end-user drops a user’s read permissions, then they cannot access the embedded data. It is that simple. There are no special utilities or settings to configure. Users just use their regular SharePoint capabilities on the PowerPivot workbook. </li>
</ol>
<p>I could go on and on – but you get the idea. SharePoint adds tremendous value in the PowerPivot world.</p>
<p>So that is my favorite feature, what’s yours? Add a comment and join in!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F03%2F07%2Fwhats-your-favorite-powerpivot-for-sharepoint-feature%2F&amp;linkname=What%26rsquo%3Bs%20your%20favorite%20PowerPivot%20for%20SharePoint%20feature%3F"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/03/07/whats-your-favorite-powerpivot-for-sharepoint-feature/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Peek Inside: Unloading PowerPivot data</title>
		<link>http://powerpivotgeek.com/2010/03/04/a-peek-inside-unloading-powerpivot-data/</link>
		<comments>http://powerpivotgeek.com/2010/03/04/a-peek-inside-unloading-powerpivot-data/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 05:58:18 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[A Peek Inside]]></category>
		<category><![CDATA[Midtier]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/03/04/a-peek-inside-unloading-powerpivot-data/</guid>
		<description><![CDATA[<p>Ok folks. Here comes a cool one.</p>
<p>As I am sure that everyone is aware by now, one of the most powerful new features of PowerPivot is that we do on-demand loading of embedded data. Well, if you are going to load it, then you had better at least think about unload it at some time. [...]]]></description>
			<content:encoded><![CDATA[<p>Ok folks. Here comes a cool one.</p>
<p>As I am sure that everyone is aware by now, one of the most powerful new features of PowerPivot is that we do on-demand loading of embedded data. Well, if you are going to load it, then you had better at least think about unload it at some time. There is probably some law of thermodynamics that applies here.</p>
<p>First rule for deleting data is that we don’t touch data if there are users currently connected to it. But other than that, any databases loaded or cached by the PSS (i.e. their database folder is contained in the SSAS Backup folder tree) are candidates for being unloaded.</p>
<p>There are two ways that databases can be unloaded in PowerPivot:</p>
<p> <span id="more-786"></span>
<p><strong>a)&#160; Inactivity</strong></p>
<p>If a database has not been accessed for a long time, then it is a good idea to start to free up resources for it. However being too aggressive means that you may have to re-read content which places a larger load on SharePoint. One of a farm’s most critical resources is the amount of traffic that has to be moved to and from the content database. So we want to minimize its load as much as possible. This is particularly true if the content is large – which is likely for PowerPivot workbooks. We have designed PowerPivot so that inactivity checking is a two stage algorithm. Every 30 minutes the PowerPivot System Service (PSS) scans the databases in the instance map assigned to the server’s service application looking for:</p>
<ol>
<li>A loaded database with its ‘last accessed’ timestamp longer than <strong>48 hours (2 days)</strong>. If it finds one, the PSS detaches the database from the SSAS instance. The database remains in the cache (a collection of detached databases on a server) so it is available for quickly coming back if a user accesses the database. If this happens, all the PSS has to do is to issue an Attach XMLA command – it does not have to go back to the SharePoint content database and re-read the workbook.</li>
<li>A cached database with its ‘last accessed’ timestamp longer than <strong>120 hours (5 days)</strong>. If it finds one, the PSS deletes the database from the cache by deleting the database folder (and all its files) from the hard disk. If a user accesses the database after it was deleted from the cache then the data has to be re-read from the workbook (which is stored in the SharePoint content database).</li>
</ol>
<p><strong>b)&#160; New Content has arrived</strong></p>
<p>If a file is updated in SharePoint (whether or not file versioning is enabled or not), then the any databases loaded or cached for that file can be unloaded from memory and deleted from the server cache immediately. Ordinarily you would think that it would be over aggressive to delete all old databases.</p>
<p>Every 30 minutes the PSS scans the databases in the instance map assigned to the server’s service application looking for content that is newer than the content loaded or cached. The instance map contains the <font face="Courier New"><strong>SPFileVersion.Created </strong></font>property of the file version that is loaded. If the ‘latest version’ of the file has a <font face="Courier New"><strong>SPFileVersion.Created </strong></font>that is later than the instance map then we know that new content has arrived. If the database is loaded, then we delete the database from the SSAS instance by sending an XMLA Delete command. If the database is cached, then the PSS deletes the database from the cache by deleting the database folder (and all its files) from the hard disk.</p>
<p>Note that we cannot use the SharePoint versioning system to determine if a version has changed. We have to use this timestamp method because the SharePoint versioning system can be disabled. In fact it is disabled by default. When it is disabled all files look like version 1.0. We are able to use the file version “Created” property because files in SharePoint are read-only. There is no in-place editing. If you edit a file, then behind the scenes you are creating a new version and it has the “Created” timestamp of the save operation.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Being a geek, you are probably asking if you can change any of these thresholds or behaviors. The answer is “Sorry, No. Maybe next version.”</p>
<p>Enjoy!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F03%2F04%2Fa-peek-inside-unloading-powerpivot-data%2F&amp;linkname=A%20Peek%20Inside%3A%20Unloading%20PowerPivot%20data"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/03/04/a-peek-inside-unloading-powerpivot-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerPivot and Windows 7</title>
		<link>http://powerpivotgeek.com/2010/03/04/powerpivot-and-windows-7/</link>
		<comments>http://powerpivotgeek.com/2010/03/04/powerpivot-and-windows-7/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 04:37:46 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Client]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/03/04/powerpivot-and-windows-7/</guid>
		<description><![CDATA[<p>Recently I had a conversation with one of our excellent beta testers and I want to make sure that everyone was clear about running PowerPivot on Windows 7.</p>
<p>Windows 7 is only supported for PowerPivot for Excel; Windows 7 is not a supported OS for PowerPivot for SharePoint</p>
<p></p>
<p>Several months ago we purposely made the decision to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had a conversation with one of our excellent beta testers and I want to make sure that everyone was clear about running PowerPivot on Windows 7.</p>
<p>Windows 7 is only supported for PowerPivot for Excel; Windows 7 is <span style="text-decoration: underline;">not</span> a supported OS for PowerPivot for SharePoint</p>
<p><span id="more-780"></span></p>
<p>Several months ago we purposely made the decision to <span style="text-decoration: underline;">not</span> support Windows 7 on the server. If you do try it, then good for you (I like adventures too) but you are totally on your own. Please don’t post any server-side question to the forums and other support channels. We cannot be asking “oh, is this running under Windows 7” with every bug report. We don’t support Windows 7; we haven’t tested under it; and we don’t even do adhoc “oh, I wonder what will happen here”. We don’t know where or if Windows 7 breaks anything. The SharePoint story with Windows 7 is pretty clear. They provide guidance on a “standalone”, non-production SharePoint installation. The problem is that PowerPivot requires a “Farm” and “Complete” installation of SharePoint Server. So we don’t believe that we have adequate test coverage to support an edge configuration for SharePoint. PowerPivot for SharePoint requires a <span style="text-decoration: underline;">server</span> OS, i.e. either Win2K8 SP2 or Win2K8 R2.</p>
<p>For the client, we have a totally different story. Windows 7 is a supported (and the preferred) platform for Office, Excel and PowerPivot for Excel.</p>
<p>I appreciate that this is an issue with some folks. And I understand where you are coming from, but we cannot help it. Windows 7 is an unsupported platform for the PowerPivot server components.</p>
<p>Obviously <span style="text-decoration: underline;">if</span> you have gone down this path, we’d love to hear about it. If you have the spare bandwidth, feel free to play, and report back – but we cannot support you.</p>
<p>Clear? Enough said. (And now we return you to your regularly scheduled programming)</p>
<p>Thanks.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F03%2F04%2Fpowerpivot-and-windows-7%2F&amp;linkname=PowerPivot%20and%20Windows%207"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/03/04/powerpivot-and-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the right version of SharePoint</title>
		<link>http://powerpivotgeek.com/2010/03/04/installing-the-right-version-of-sharepoint/</link>
		<comments>http://powerpivotgeek.com/2010/03/04/installing-the-right-version-of-sharepoint/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 00:03:51 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/03/04/installing-the-right-version-of-sharepoint/</guid>
		<description><![CDATA[<p>So you think that you have done everything right, but still SQL setup (in PowerPivot SharePoint integration mode) still reports “You don’t have a ‘Complete’ SharePoint installation.” How can this happen?</p>

You might not have followed the installation guide. It tells you to first select “Farm” and then “Complete” on your first two screens after you [...]]]></description>
			<content:encoded><![CDATA[<p>So you think that you have done everything right, but still SQL setup (in PowerPivot SharePoint integration mode) still reports “You don’t have a ‘Complete’ SharePoint installation.” How can this happen?</p>
<ul>
<li>You might not have followed the installation guide. It tells you to first select “Farm” and then “Complete” on your first two screens after you enter your SharePoint product key. If you are installing on a domain controller, then the only selection that is supported is “Farm” and “Complete”, thus on a domain controller you won’t even be asked – it just defaults to this configuration. They don’t even offer you the possibility of running in an unsupported configuration. Just double check what you asked for. BTW: If you are running a RC0 version of SharePoint there is a known bug that a “Standalone” rather than “Farm” install is done. This is a RC0 only bug and it was fixed in a later build.</li>
<li><span style="text-decoration: underline;">You might have installed the wrong version of SharePoint</span>. You might have installed SharePoint Foundation Server instead of SharePoint Server. It turns out that this is very easy to do. It also does not ask you about “Farm” or “Complete” – it automatically installs a standalone SharePoint installation.  So, how can you tell the difference (besides one returns an error; and one doesn’t) Here is a trick:</li>
</ul>
<p><span id="more-778"></span></p>
<ul>
<li>This is what the installation folder looks like with SharePoint Foundation Server:
<p><a href="http://powerpivotgeek.com/wp-content/uploads/2010/03/clip_image002.jpg"><img style="display: inline; border-width: 0px;" title="clip_image002" src="http://powerpivotgeek.com/wp-content/uploads/2010/03/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="594" height="449" /></a></p>
<p>This will generate a “standalone” installation – and PowerPivot cannot use it. While there is a setup rule about the version of SharePoint installed, under certain circumstances, instead SQL Setup reports that a SharePoint “Complete” installation was not done. Even the error message is a bit misleading since what the rule is actually checking it to see if the registry key:</p>
<blockquote><p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS<br />
Name: ServerRole = SINGLESERVER | APPLICATION</p></blockquote>
<p>contains “APPLICATION”. So how can you check for a SharePoint Server 2010 distribution? Just look for some extra folders!</p>
<p>Here is what a SharePoint Server 2010 distribution looks like:</p>
<p><a href="http://powerpivotgeek.com/wp-content/uploads/2010/03/clip_image0024.jpg"><img style="display: inline; border-width: 0px;" title="clip_image002[4]" src="http://powerpivotgeek.com/wp-content/uploads/2010/03/clip_image0024_thumb.jpg" border="0" alt="clip_image002[4]" width="594" height="596" /></a></p>
<p>Notice the differences in the folders. There are additional folders for Excel Services, Access Services, and all of the new SharePoint 2010 services. Even though you might not actually turn on these features on your SharePoint site, the fact that the folders exist on the distribution tells you that you have the correct version of the product. <span style="text-decoration: underline;">This is the distribution you must be using for a good PowerPivot installation.</span> Don’t worry about if it is Standard Edition or Enterprise Edition. In SharePoint, that is a difference in the key you install into the server. The bits are exactly the same.</li>
</ul>
<p>Enjoy.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F03%2F04%2Finstalling-the-right-version-of-sharepoint%2F&amp;linkname=Installing%20the%20right%20version%20of%20SharePoint"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/03/04/installing-the-right-version-of-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping a workbook &#8216;pinned&#8217; in memory</title>
		<link>http://powerpivotgeek.com/2010/03/02/keeping-a-workbook-pinned-in-memory/</link>
		<comments>http://powerpivotgeek.com/2010/03/02/keeping-a-workbook-pinned-in-memory/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 20:51:15 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/03/02/keeping-a-workbook-pinned-in-memory/</guid>
		<description><![CDATA[<p>One of the special considerations that arise when demonstrating PowerPivot is that you would like to ensure the workbooks that you are showing are kept in memory all of the time. PowerPivot does not have a built-in ‘pin’ feature to do this, but there is nice trick that you can use. Here is what I [...]]]></description>
			<content:encoded><![CDATA[<p>One of the special considerations that arise when demonstrating PowerPivot is that you would like to ensure the workbooks that you are showing are kept in memory all of the time. PowerPivot does not have a built-in ‘pin’ feature to do this, but there is nice trick that you can use. Here is what I do:</p>
<ol>
<li>Turn on SQL Agent.</li>
<li>The SQL Agent service account needs access to the content in SharePoint, i.e. the workbooks being demo’ed</li>
<li>Create a job with a schedule that runs every <em>n</em> minutes (I use every 5 minutes) and a single “SQL Server Analysis Services Query” step with the following characteristics:
<ol>
<li>Set the “Server” to be the URL to the workbook you are trying to keep loaded</li>
<li>Enter a command that you know will fail, or if you know one that would be OK, I typically use “SELECT * FROM SANDBOX” (which will fail) – we don’t need the query to run – all we need is a good connection and the embedded data will be loaded.</li>
</ol>
</li>
</ol>
<p>A valid question might be: “So tell me, Dave, why every 5 minutes? That seems way too often. After all this is a demo system and there isn’t memory pressure, so why running it so often??” Yes, that is true. The other reason for why the workbook data would not be loaded is the inactivity timeout @48 hours for detaching. But that also does not seem to apply. The reason why I use 5 minutes is data refresh. Since I typically demonstrate setting and running a data refresh, this means that new content is always being generated. When new content arrives in SharePoint, the PowerPivot cleaner thread checks every 10 minutes and it will delete unused old databases immediately. Thus you would have the &#8216;first access&#8217; loading the new content – and with it, the built-in delay would happen. Running the job every 5 minutes means a forced load of the new data quickly. Your mileage may vary.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F03%2F02%2Fkeeping-a-workbook-pinned-in-memory%2F&amp;linkname=Keeping%20a%20workbook%20%26lsquo%3Bpinned%26rsquo%3B%20in%20memory"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/03/02/keeping-a-workbook-pinned-in-memory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new Diagnostic Guide posted in the Troubleshooting section</title>
		<link>http://powerpivotgeek.com/2010/02/24/a-new-diagnostic-guide-posted-in-the-troubleshooting-section/</link>
		<comments>http://powerpivotgeek.com/2010/02/24/a-new-diagnostic-guide-posted-in-the-troubleshooting-section/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 02:17:06 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/02/24/a-new-diagnostic-guide-posted-in-the-troubleshooting-section/</guid>
		<description><![CDATA[<p>I just posted a new diagnostic guide in the troubleshooting section:</p>
<p>“Diagnostic Guide for Usage and the PowerPivot Management Dashboard” by Ankur Goyal
http://powerpivotgeek.com/troubleshooting/diagnostic-guide-for-usage-and-the-powerpivot-management-dashboard/</p>
<p>Enjoy!</p>
<p>_-_-_ Dave</p>
]]></description>
			<content:encoded><![CDATA[<p>I just posted a new diagnostic guide in the troubleshooting section:</p>
<p>“Diagnostic Guide for Usage and the PowerPivot Management Dashboard” by <em>Ankur Goyal<br />
</em><a title="http://powerpivotgeek.com/troubleshooting/diagnostic-guide-for-usage-and-the-powerpivot-management-dashboard/" href="http://powerpivotgeek.com/troubleshooting/diagnostic-guide-for-usage-and-the-powerpivot-management-dashboard/">http://powerpivotgeek.com/troubleshooting/diagnostic-guide-for-usage-and-the-powerpivot-management-dashboard/</a></p>
<p>Enjoy!</p>
<p>_-_-_ Dave</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F02%2F24%2Fa-new-diagnostic-guide-posted-in-the-troubleshooting-section%2F&amp;linkname=A%20new%20Diagnostic%20Guide%20posted%20in%20the%20Troubleshooting%20section"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/02/24/a-new-diagnostic-guide-posted-in-the-troubleshooting-section/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstalling PowerPivot for Excel</title>
		<link>http://powerpivotgeek.com/2010/02/24/uninstalling-powerpivot-for-excel/</link>
		<comments>http://powerpivotgeek.com/2010/02/24/uninstalling-powerpivot-for-excel/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 21:03:08 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[Client]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/02/24/uninstalling-powerpivot-for-excel/</guid>
		<description><![CDATA[<p>A trick for the client-side folks doing build-to-build reinstallations (or if you wish to clear all of the PowerPivot code from your client): besides uninstalling “Microsoft PowerPivot for Excel” (via control panel Add/Remove/Uninstall Programs, the exact wording varies depending on the OS you are running), you may also have to delete files in:</p>
<p>C:\Program Files\Microsoft Analysis [...]]]></description>
			<content:encoded><![CDATA[<p>A trick for the client-side folks doing build-to-build reinstallations (or if you wish to clear all of the PowerPivot code from your client): besides uninstalling “Microsoft PowerPivot for Excel” (via control panel Add/Remove/Uninstall Programs, the exact wording varies depending on the OS you are running), you may also have to delete files in:</p>
<blockquote><p>C:\Program Files\Microsoft Analysis Services, and</p>
<p>C:\Program Files(x86)\Microsoft Analysis Services (if running on an x64 machine)</p>
</blockquote>
<p>This is because the Analysis Services OLE DB provider (and its components) are also installed in these folders. They are not removed during uninstall because we don’t know if there are other components that are using them. Thus you must be careful, particularly if you know that there are other dependent products that are using them before you delete the folders. Dependent products should be uninstalled before you delete these files. </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F02%2F24%2Funinstalling-powerpivot-for-excel%2F&amp;linkname=Uninstalling%20PowerPivot%20for%20Excel"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/02/24/uninstalling-powerpivot-for-excel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>When is null not a null?</title>
		<link>http://powerpivotgeek.com/2010/02/15/when-is-null-not-a-null/</link>
		<comments>http://powerpivotgeek.com/2010/02/15/when-is-null-not-a-null/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 20:34:57 +0000</pubDate>
		<dc:creator>powerpivotgeek</dc:creator>
				<category><![CDATA[DAX]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/02/15/when-is-null-not-a-null/</guid>
		<description><![CDATA[<p>Recently there have been some discussions on the forums and in other areas concerning how PowerPivot handles nulls. As this has changed between CTP3 (back in November) and the upcoming RTM of the product, I thought that it would be a good posting. Here is the situation: suppose you have a simple calculated measure: </p>
<p>m1 [...]]]></description>
			<content:encoded><![CDATA[<p>Recently there have been some discussions on the forums and in other areas concerning how PowerPivot handles nulls. As this has changed between CTP3 (back in November) and the upcoming RTM of the product, I thought that it would be a good posting. Here is the situation: suppose you have a simple calculated measure: </p>
<blockquote><p>m1 = SUM(c1) / SUM(c2)</p>
</blockquote>
<p>If <em>c2</em> is NULL, then then you get #NUM as a result. No worries, pretty much expected. However, it is difficult to trap when this is happening. For example, with CTP3: </p>
<blockquote><p>m1 = IF (SUM(c2) = 0, 0, SUM(c1) / SUM(c2))</p>
</blockquote>
<p>You can use IFERROR and ISERROR but they are slower and have more overhead and should be avoided if possible:</p>
<blockquote><p>m1 = IFERROR((&#160;&#160; SUM(c1) / SUM(c2)&#160;&#160; ), 0) </p>
<p>-or-</p>
<p>m1 = IF(ISERROR(&#160;&#160; SUM(c1) / SUM(c2)&#160;&#160; ), 0, (&#160; SUM(c1) / SUM(c2)&#160;&#160; ))</p>
</blockquote>
<p>. . . however, regardless, <em>m1</em> keeps returning #NUM, not 0. In CTP3 PowerPivot does not treat infinity as an error despite #NUM being displayed in Excel.&#160; This is effectively what is going on in this example, as NULL is being converted to zero (division by zero then yields infinity). The RTM version of PowerPivot will treat such a scenario as an error and IF/ IFERROR/ ISERROR will behave as expected. </p>
<p>(My thanks to Marius Dumitru, Russell Christopher and Brandon Unger for providing both the examples above and the answer.) </p>
<p>Enjoy. </p>
<p>_-_-_ Dave</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F02%2F15%2Fwhen-is-null-not-a-null%2F&amp;linkname=When%20is%20null%20not%20a%20null%3F"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/02/15/when-is-null-not-a-null/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cannot add the specified assembly to the global assembly cache</title>
		<link>http://powerpivotgeek.com/2010/02/12/cannot-add-the-specified-assembly-to-the-global-assembly-cache/</link>
		<comments>http://powerpivotgeek.com/2010/02/12/cannot-add-the-specified-assembly-to-the-global-assembly-cache/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 19:09:33 +0000</pubDate>
		<dc:creator>powerpivotwahoo</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/02/12/cannot-add-the-specified-assembly-to-the-global-assembly-cache/</guid>
		<description><![CDATA[<p>This is part of my continuing series on debugging SharePoint and PowerPivot. In this case, I do not expect any PowerPivot users to ever encounter this error in the context of PowerPivot. However, the general SharePoint developer who is in the early stages of building and testing his custom solutions might hit this and since [...]]]></description>
			<content:encoded><![CDATA[<p>This is part of my continuing series on debugging SharePoint and PowerPivot. In this case, I do not expect any PowerPivot users to ever encounter this error in the context of PowerPivot. However, the general SharePoint developer who is in the early stages of building and testing his custom solutions might hit this and since so many people on our team have been confused by it, I thought I would throw out some help for other developers. This error is hit when trying to deploy a SharePoint solution package to the farm. It could be an ApplicationServer solution or a WebFrontEnd solution, the important part is that it has an assembly marked to be deployed to the GAC:</p>
<blockquote><p>&lt;Solution SolutionId=&#8221;94BE5F4C-D227-4981-A725-95ABC706364A&#8221; DeploymentServerType=&#8221;ApplicationServer&#8221; ResetWebServer=&#8221;TRUE&#8221; xmlns=&#8221;<a href="http://schemas.microsoft.com/sharepoint/&quot;">http://schemas.microsoft.com/sharepoint/&#8221;</a>&gt;<br />
  &lt;Assemblies&gt;<br />
    &lt;Assembly DeploymentTarget=&#8221;GlobalAssemblyCache&#8221; Location=&#8221;MyAssembly.dll&#8221; /&gt;<br />
  &lt;/Assemblies&gt;<br />
  &#8230;<br />
&lt;/Solution&gt;</p></blockquote>
<p>The above solution, when deployed via either stsadm or the new PowerShell commandlets in SharePoint 2010 will attempt to put the assembly “MyAssembly.dll” into the GAC on every ApplicationServer in the farm. There are two possible reasons for this deployment to fail with the above error:</p>
<p>1) The assembly is already in the GAC. For the initial deploy, it appears the SharePoint uses “/i” and not “/if” and so it could fail if the assembly is already there. Most of the time, I find that this is not the issue but it could be for you. You can test if this is the issue by simply removing the version of the dll which is already there. If that is causing it, you need to figure out why you are trying to GAC the same version of the dll more than once.</p>
<p>2) You have not disabled strong name verification. For us … this was always the issue. Signing your assemblies is a time consuming process for a large product and so often you mark your assemblies for delay signing and then only sign “special” builds. In those cases, you need to disable strong name verification in order to add un-signed assemblies to the GAC. The tool for doing this is sn.exe which can be found in your Windows SDK directory. Using the –Vr option you can mark classes of assemblies to be skipped when it comes to verification. The classic command is “sn.exe –Vr *,*” which is indicating that any assembly with any public key token should be skipped. You might also chose to just skip verification for assemblies with your public key token with something like: “sn –Vr *,89845dcd8080cc91”. Whatever method you chose, there are a couple of key things you need to understand to make sure sn has “worked” for you:</p>
<ul>
<li>Deploying a solution will deploy the solution to every appropriate machine in your farm. If you install an msi on MachineA in the farm and on that machine run sn.exe, but then deploy a solution and MachineB is also a member of the farm, you had to have run sn.exe on that machine also.</li>
<li>Sn.exe comes in a 32 and 64 bit flavor. It is difficult to tell which version you are running if someone just gave you the bits in a random folder (in the SDK folder the bits are under “architecturely” marked folder names). If you run the 32 version of sn.exe it will not help you when trying to GAC the binary on the 64-bit SharePoint server. There are a number of ways to try and figure out what is marked for “skipping” using the sn.exe tool, but I like to go directly to the registry because there is very little room for confusion there. Sn.exe is adding entries to the <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\</strong> and <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\</strong> hives of the registry for whatever parameters you pass into the call to “sn.exe –Vr”. If you look in your registry and find that you only see an entry under the Wow6432Node, then you have only run the 32 bit version of sn. You will need to find the 64-bit version of sn.exe to get your skip registrations in the appropriate place (you can actually add them manually if you feel confident enough to edit the registry by hand).</li>
<li><strong><span style="text-decoration: underline;">THIS IS THE MOST OFTEN OVERLOOKED STEP</span> – </strong>The list of what to skip when it comes to verification is actually cached. Normally, when you run gacutil.exe by hand, the process starts, loads the skip list, verifies, fails / succeeds and shuts down. Hence, if it fails and you then run sn.exe, the next time you run gacutil.exe it will succeed. This is *<strong>not*</strong> how it works with SharePoint. Solution deployment is done within the context of their timer service. This is an nt service which is not shutdown after a failed / successfull deployment of your solution. Hence, if your solution fails to deploy because of a strong name verification issue, you run “sn –Vr *,*” to enable skipping verification, and then try to deploy your solution again … <strong>*it will fail again*</strong>. You must recycle the SharePoint 2010 Timer service on every machine on which your solution is going to be deployed (specifically on which you just ran sn.exe) in order to get the skip list reloaded. I have seen people get frustrated and so reboot their machines which will obviously work, but all you really needed to do was recycle the timer service.</li>
</ul>
<p> </p>
<p>Hopefully this will help some SharePoint developers avoid wasting too much time figuring out why this was failing.</p>
<p>HTH<br />
Lee</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F02%2F12%2Fcannot-add-the-specified-assembly-to-the-global-assembly-cache%2F&amp;linkname=Cannot%20add%20the%20specified%20assembly%20to%20the%20global%20assembly%20cache"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/02/12/cannot-add-the-specified-assembly-to-the-global-assembly-cache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The data connection uses Windows Authentication and user credentials could not be delegated</title>
		<link>http://powerpivotgeek.com/2010/02/08/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/</link>
		<comments>http://powerpivotgeek.com/2010/02/08/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 00:30:15 +0000</pubDate>
		<dc:creator>powerpivotwahoo</dc:creator>
				<category><![CDATA[Midtier]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://powerpivotgeek.com/2010/02/08/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/</guid>
		<description><![CDATA[<p>This is one of the two main errors that users could see from Excel Services when using PowerPivot. This is encountered when refreshing PowerPivot data connections or performing an action which requires re-querying the PowerPivot database, such as clicking on a slicer or expanding a node in a pivot table. To debug, some level of [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the two main errors that users could see from Excel Services when using PowerPivot. This is encountered when refreshing PowerPivot data connections or performing an action which requires re-querying the PowerPivot database, such as clicking on a slicer or expanding a node in a pivot table. To debug, some level of understanding of what Excel Services is doing is required. For this, I recommend reading an earlier post on this blog by Dave … <a title="http://powerpivotgeek.com/2009/12/11/excel-services-delegation/" href="http://powerpivotgeek.com/2009/12/11/excel-services-delegation/">http://powerpivotgeek.com/2009/12/11/excel-services-delegation/</a>. In general, this is an add-on to Dave’s post which is a quick summary of how to debug this error.</p>
<p><span id="more-672"></span></p>
<p><a href="http://powerpivotgeek.com/wp-content/uploads/2010/02/UserCredentialsCouldNotBeDelegated.png"><img style="border-width: 0px;" src="http://powerpivotgeek.com/wp-content/uploads/2010/02/UserCredentialsCouldNotBeDelegated_thumb.png" border="0" alt="UserCredentialsCouldNotBeDelegated" width="244" height="167" /></a></p>
<p>Here is a quick list of most likely causes for this error and how to debug and fix them (in order based on my experience of likelihood to be the root cause):</p>
<ul>
<li><span style="text-decoration: underline;">Is the Claims to Windows Token Service started on the server running Excel Calculation Service (ECS)?</span> For detailed information on the Claims to Windows Token Service, you can read the msdn article at <a title="http://msdn.microsoft.com/en-us/library/ee517278.aspx" href="http://msdn.microsoft.com/en-us/library/ee517278.aspx">http://msdn.microsoft.com/en-us/library/ee517278.aspx</a>. This service is turned on when doing a “New Farm” installation of PowerPivot, but if you do an “Existing Farm” installation, or have ECS running on a different machine, the Claims to Windows Token Service might not be started. You can validate this via the “Services on Server” option in SharePoint’s Central Administration web site. For more information on this and why you should not try to manage this service from Service Control Manager (SCM) refer to <a title="http://powerpivotgeek.com/2010/01/18/why-you-shouldnt-stop-start-analysis-services-from-scm-when-running-in-sharepoint-integration-mode/" href="http://powerpivotgeek.com/2010/01/18/why-you-shouldnt-stop-start-analysis-services-from-scm-when-running-in-sharepoint-integration-mode/">http://powerpivotgeek.com/2010/01/18/why-you-shouldnt-stop-start-analysis-services-from-scm-when-running-in-sharepoint-integration-mode/</a>. Claims to Windows Token Service is a managed SharePoint service in SharePoint 2010 and so should only be started /stopped from SharePoint Central Administration. As well as simply managing the service, SharePoint configures the security permissions for this service automatically as part of their setup so that all SharePoint Shared Services (which includes ECS) can use it. If you find that the service is stopped on the machine running ECS, start it. After starting this service, you should not need to do any type of  IisReset to see the system start working.</li>
<li><span style="text-decoration: underline;">Is your machine connected to the network?</span> Dave has written a good blog on this also (<a title="http://powerpivotgeek.com/2009/11/06/taking-your-server-off-the-network/" href="http://powerpivotgeek.com/2009/11/06/taking-your-server-off-the-network/">http://powerpivotgeek.com/2009/11/06/taking-your-server-off-the-network/</a>). If you are actually trying to run a PowerPivot demo with a machine which is not on the network, follow the steps in Dave’s blog to configure ECS to use a set of stored credentials for the PowerPivot datasource. If you are not doing this on purpose, then connect back to the network.</li>
<li>The final cause would be that for some reason other than network connectivity, the Claims to Windows Token Service is not able to convert the SAML claims token to a Windows User security token. Dave provides a lot of details on these potential issues. Some quick questions to ask yourself:
<ul>
<li><span style="text-decoration: underline;">Is the client user account (the logged in user who is browsing the workbook in IE) a domain account?</span> If the account is a local machine account, then the Claims to Windows Token service will not be able to retrieve a Windows user security token. We do not support this scenario in V1 of PowerPivot. Interactive users must be domain users. For demo purposes in a bind you might try the workaround Dave provided for taking the server off of the network, but I have not personally tested it in this case.</li>
<li><span style="text-decoration: underline;">Is the client user account in a different domain than the SharePoint servers?</span> This is completely supported, but there must be a trust relationship established between the two domains. You could verify if a missing trust issue is causing your problems by logging in as a user account in the same domain as the SharePoint servers and try interacting with the workbooks (note that you had to have given that user access to the workbook). If it works for users in the same domain but not for users in other domains, it might be an issue with cross domain trust. Contact your domain admin to figure out what the relationships are setup as.</li>
<li><span style="text-decoration: underline;">What account is the Claims to Windows Token Service running as?</span> By default it is configured to run as Local System, and I am not aware of the reasons for changing this configuration (the msdn article also refers to the fact that it should be running as Local System). While there might be a good reason for trying to change it, it is possible that the person who altered it did not understand the implications of this change. You should probably track down the person who changed it and get an understanding of why. If you have permissions, switch it back to Local System and try the scenario again. If it works, you will need to determine why it was changed in the first place.</li>
<li>If you have gotten this far and none of the above have solved your issue, then there is the possibility that you have some custom AD configuration which is causing the issue. Dave points out one possibility:<br />
<blockquote><p>The account being used as the Excel Services service account must have AD rights to be able to query the object. One place where we know this restriction comes into play is if you have configured your domain controller to have a subgroup under “Users”, e.g. “Service Accounts”, which is a separate AD group that derives from “Users” –&gt; but I am sure that there are more. AD rights for service accounts is a common problem across all of SharePoint.</p></blockquote>
<p>What Dave describes is one possibility where an AD configuration could cause this issue. As we discover more potential AD configurations that could cause this issue, we will try to update this list.</li>
</ul>
</li>
</ul>
<p>Hopefully this list will help you quickly debug and fix this issue on your system. HTH</p>
<p>Lee</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fpowerpivotgeek.com%2F2010%2F02%2F08%2Fthe-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated%2F&amp;linkname=The%20data%20connection%20uses%20Windows%20Authentication%20and%20user%20credentials%20could%20not%20be%20delegated"><img src="http://powerpivotgeek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://powerpivotgeek.com/2010/02/08/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
