<?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>youdidwhatwithtsql.com &#187; SSAS</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/category/ssas/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Wed, 01 Sep 2010 17:02:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The &#8216;DataSourceView&#8217; with &#8216;ID&#8217; = &#8216;Adventure Works DW2008&#8242; doesn&#8217;t exist in the collection.</title>
		<link>http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647</link>
		<comments>http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647#comments</comments>
		<pubDate>Mon, 15 Feb 2010 21:58:08 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[SSAS]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647</guid>
		<description><![CDATA[One of my goals for this year has been to learn more about SQL Server Analysis Services. So I&#8217;ve bought myself a (very fat) book on the subject and have started to work my way through it. A few days ago I built the first example cube in Chapter two. Coming back to it this [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647">The &#8216;DataSourceView&#8217; with &#8216;ID&#8217; = &#8216;Adventure Works DW2008&#8242; doesn&#8217;t exist in the collection.</a></p>
]]></description>
			<content:encoded><![CDATA[<p>One of <a href="http://www.youdidwhatwithtsql.com/goals-for-2010/514" target="_blank">my goals for this year</a> has been to learn more about <a href="http://msdn.microsoft.com/en-us/library/ms175609(SQL.90).aspx" target="_blank">SQL Server Analysis Services</a>. So I&#8217;ve bought myself a (very fat) book on the subject and have started to work my way through it. A few days ago I built the first example cube in Chapter two. Coming back to it this evening, I opened the project in <a href="http://msdn.microsoft.com/en-us/library/ms173767.aspx" target="_blank">BIDS</a>, and was presented with the following error in the cube designer.</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ssas designer data source view collection error" border="0" alt="ssas designer data source view collection error" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_designer_data_source_view_error_thumb.png" width="644" height="175" /></p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_designer_data_source_view_error.png"></a></p>
<p>I recalled renaming the <a href="http://technet.microsoft.com/en-us/library/ms174600.aspx" target="_blank">DataSource View</a>, and have experienced similar issues with renaming objects in <a href="http://www.microsoft.com/sqlserver/2005/en/us/integration-services.aspx" target="_blank">SSIS</a>, so I decided to check out the properties of the DataSourceView.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_data_source_view.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ssas data source view" border="0" alt="ssas data source view" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_data_source_view_thumb.png" width="644" height="388" /></a> </p>
<p>Mmmm, the ObjectId here has a &#8217;1&#8242; on the end which implies to me it has been copied and pasted from an original. This info appears to be read only here so I decided to dive into the cubes xml. The xml of a cube can be viewed by right-clicking on it in <a href="http://msdn.microsoft.com/en-us/library/26k97dbc(VS.80).aspx" target="_blank">Solution Explorer</a> and choosing &quot;View Code&quot;.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_cube_xml.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ssas_cube_xml" border="0" alt="ssas cube xml thumb The DataSourceView with ID = Adventure Works DW2008 doesnt exist in the collection." src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_cube_xml_thumb.png" width="644" height="374" /></a> </p>
<p>I found one reference to <strong>Adventure Works DW2008</strong> in this XML between <strong>&lt;DataSourceViewId&gt;</strong> tags. I changed this to the Id of <strong>Adventure Works DW2008 1</strong> as below.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_cube_xml2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ssas_cube_xml2" border="0" alt="ssas cube xml2 thumb The DataSourceView with ID = Adventure Works DW2008 doesnt exist in the collection." src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_cube_xml2_thumb.png" width="644" height="278" /></a> </p>
<p>I then saved the project and went back to the cube designer.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_designer_data_source_view_error_fixed.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ssas designer data source view error fixed" border="0" alt="ssas designer data source view error fixed" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2010/02/ssas_designer_data_source_view_error_fixed_thumb.png" width="644" height="483" /></a> </p>
<p>Excellent. I have repaired my broken cube! Now on with Chapter three!</p>
<p><map name='google_ad_map_647_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/647?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_647_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=647&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fthe-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection%2F647' title="The DataSourceView with ID = Adventure Works DW2008 doesnt exist in the collection." alt=" The DataSourceView with ID = Adventure Works DW2008 doesnt exist in the collection." /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647">The &#8216;DataSourceView&#8217; with &#8216;ID&#8217; = &#8216;Adventure Works DW2008&#8242; doesn&#8217;t exist in the collection.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/the-datasourceview-with-id-adventure-works-dw2008-doesnt-exist-in-the-collection/647/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
