<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The CRM Grid - A Microsoft CRM Blog</title>
	<atom:link href="http://thecrmgrid.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrmgrid.wordpress.com</link>
	<description>Greg Owens' rose-tinted MS-CRM mumblings</description>
	<lastBuildDate>Mon, 17 Aug 2009 10:01:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='thecrmgrid.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a5e64358f7371e373e152d10a6931ba8?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>The CRM Grid - A Microsoft CRM Blog</title>
		<link>http://thecrmgrid.wordpress.com</link>
	</image>
			<item>
		<title>Restarting the CRM application pool</title>
		<link>http://thecrmgrid.wordpress.com/2009/08/17/restarting-the-crm-application-pool/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/08/17/restarting-the-crm-application-pool/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 10:01:24 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=111</guid>
		<description><![CDATA[So you&#8217;re developing plug-ins and you need to redeploy your DLL periodically since it is otherwise &#8220;in use&#8221; or there is some other reason that is asking for a full iisreset. Since a full reset is a bit invasive and global (e.g. this is a production server which also runs SharePoint, website or goodness knows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=111&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So you&#8217;re developing plug-ins and you need to redeploy your DLL periodically since it is otherwise &#8220;in use&#8221; or there is some other reason that is asking for a full <em>iisreset</em>. Since a full reset is a bit invasive and global (e.g. this is a production server which also runs SharePoint, website or goodness knows what else), why not recycle the application pool instead?</p>
<p>Of course, we can do this via IIS Manager with a bit of point and click &#8211; but this can&#8217;t be automated and it&#8217;s a bit fiddly. Instead, do it from the command line with this handy bit of text:</p>
<p><code>cscript c:\windows\system32\iisapp.vbs /a "CrmAppPool" /r</code></p>
<p>Recycling the application pool is distinctly quicker than doing a full <em>iisreset </em>(though admittedly there are some scenarios when recycling the application pool is insufficient &#8211; no idea on the specifics though! <a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/003ed2fe-6339-4919-b577-6aa965994a9b.mspx?mfr=true" target="_blank">See here, perhaps</a>). I find this especially useful in the post-build events of Visual Studio (Project &gt; %ProjectName% Properties &gt; Build Events) to ensure that copying my DLLs always works without manually intervention.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=111&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/08/17/restarting-the-crm-application-pool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>Event execution order with &#8216;onbeforeunload&#8217;</title>
		<link>http://thecrmgrid.wordpress.com/2009/06/08/event-execution-order-with-onbeforeunload/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/06/08/event-execution-order-with-onbeforeunload/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 11:38:28 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=93</guid>
		<description><![CDATA[Recently I had a requirement to conditionally add some dynamic script to the onClose event for a CRM form. Given the flexiblility demanded by the requirements, it was not practical to write script in the form&#8217;s onClose() event hander in the CRM Form Properties window. Instead, I used Internet Explorer&#8217;s attachEvent method. 
The problem with the attachEvent method is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=93&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><div class="wp-caption alignright" style="width: 202px"><a href="http://astore.amazon.co.uk/thecrmgrid-21/detail/0596517742"><img src="http://ecx.images-amazon.com/images/I/51JBu91TjRL._BO2,204,203,200__AA240_SH20_OU02_.jpg" alt="Recommended JavaScript Book!" width="192" height="192" /></a><p class="wp-caption-text">I&#39;d also like to highly recommend this JavaScript book by Douglas Crockford - it will definitely improve the quality of your JavaScript development experience!</p></div><br />
Recently I had a requirement to conditionally add some dynamic script to the onClose event for a CRM form. Given the flexiblility demanded by the requirements, it was not practical to write script in the form&#8217;s onClose() event hander in the CRM Form Properties window. Instead, I used Internet Explorer&#8217;s <a title="attachEvent Method (MSDN)" href="http://msdn.microsoft.com/en-us/library/ms536343(VS.85).aspx" target="_blank">attachEvent method</a>. </p>
<p>The problem with the attachEvent method is that the collection of functions that are appended to the event are executed in &#8220;random order&#8221;. &#8220;Random&#8221; is rarely a desirable sequence  in my experience and in this case one cannot guarantee that a custom dynamic &#8220;validation check&#8221; (for example) will be executed before the default event handler (i.e. the one that may ask &#8220;Are you sure you want to navigate away from this page?&#8221;).</p>
<p>Alas a simple solution is at hand, thanks to <a title="Adding a onbeforeunload event to an existing onbeforeunload" href="http://www.codingforums.com/showpost.php?p=814189&amp;postcount=2" target="_blank">this post</a> made by &#8220;Adios&#8221; over at CodingForums.com. The function below will effectively inject your function call <em>before </em>the default event handler.  Obviously this function can be easily amended to deal with any type of event but the example  below is hard-coded to deal with the &#8220;onbeforeunload&#8221; event handler.</p>
<p>Define this function in your form onLoad script (or somewhere in your global code, if you have adopted a custom solution for centralising your JavaScripts):</p>
<pre class="brush: jscript;">
function addbeforeunloadEvent(func)
{
    var oldonbeforeunload = window.onbeforeunload;
    if (typeof window.onbeforeunload != 'function') {
        window.onbeforeunload = func;
    } else {
        window.onbeforeunload = function() {
            oldonbeforeunload();
            func();
        }
    }
}
</pre>
<p>Then use the following snippet to insert your function ahead of the default or existing event handler:</p>
<pre class="brush: jscript;">
//TODO: replace myFunctionName and myParameter list to match your custom function signature
addbeforeunloadEvent(function(){myFunctionName(myParameterList);});
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=93&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/06/08/event-execution-order-with-onbeforeunload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>

		<media:content url="http://ecx.images-amazon.com/images/I/51JBu91TjRL._BO2,204,203,200__AA240_SH20_OU02_.jpg" medium="image">
			<media:title type="html">Recommended JavaScript Book!</media:title>
		</media:content>
	</item>
		<item>
		<title>Update Rollup 4 for Microsoft CRM 4.0 is available</title>
		<link>http://thecrmgrid.wordpress.com/2009/05/08/update-rollup-4-for-microsoft-crm-4-0-is-available/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/05/08/update-rollup-4-for-microsoft-crm-4-0-is-available/#comments</comments>
		<pubDate>Fri, 08 May 2009 08:29:44 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=84</guid>
		<description><![CDATA[More info and download here
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=84&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>More info and download <a title="Click here for more info" href="http://support.microsoft.com/kb/968176/EN-US/" target="_blank">here</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=84&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/05/08/update-rollup-4-for-microsoft-crm-4-0-is-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>SSRS &#8211; checking an external image exists</title>
		<link>http://thecrmgrid.wordpress.com/2009/03/24/ssrs-checking-an-external-image-exists/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/03/24/ssrs-checking-an-external-image-exists/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 10:45:06 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=62</guid>
		<description><![CDATA[SSRS supports adding external images to your reports. This is useful if, like my client, you have images stored in a SharePoint Document Library. Using some commonly-found code for structuring their document libraries, most accounts have had an image called &#8220;main.jpg&#8221; uploaded. If &#8220;main.jpg&#8221; does not exist, there are good business reasons for this.
The client [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=62&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SSRS supports adding external images to your reports. This is useful if, like my client, you have images stored in a SharePoint Document Library. Using some commonly-found code for structuring their document libraries, most accounts have had an image called &#8220;main.jpg&#8221; uploaded. If &#8220;main.jpg&#8221; does not exist, there are good business reasons for this.</p>
<p>The client required a report which should include &#8220;main.jpg&#8221;, if it exists. Otherwise no image should be present at all. The problem is that SSRS is only aware of the URL to the image as a simple string. I used SQL to construct a URL string for each record, but SSRS can&#8217;t natively detect whether an image exists at this URL or not. There is a way around this, however. SSRS allows you to embed your own custom code in your report properties. The following code checks whether an image exists at a given URL and returns true or false. This code can be called from an image control&#8217;s &#8220;Hidden&#8221; property, or combined with an expression in the image controls &#8220;Value&#8221; property to manipulate the URL:</p>
<pre class="brush: vb;">

Public Function ImageExists(ByRef URL As String) As Boolean
'Create a web request
  Dim m_Req As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(URL)   

  'Get a web response
  Try
    Dim HttpWResp As System.Net.HttpWebResponse = CType(m_Req.GetResponse(), System.Net.HttpWebResponse)
    If HttpWResp.StatusCode = System.Net.HttpStatusCode.OK
      Return True
    Else
      Return False
    End If
  Catch ex As System.Net.WebException
    If ex.Status = System.Net.WebExceptionStatus.ProtocolError Then
      Return False
    End If
  End Try
  Return Nothing
End Function
</pre>
<p>To use it, copy the code above to your report properties (Report &gt; Report Properties&#8230; &gt; Code), then after inserting an image control (with Image Source of &#8220;Web&#8221;), add the following code to the Hidden property (Image &gt; Visibility &gt; Hidden &gt; Expression&#8230;):</p>
<pre class="brush: vb;">
=If (Code.ImageExists(FieldNameThatHoldsImageURL)=True)
  Then Return False
Else
  Return True
</pre>
<p>Any suggestions, improvements or alternative approaches are welcome!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=62&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/03/24/ssrs-checking-an-external-image-exists/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>MSCRM Update Rollup 3 is available</title>
		<link>http://thecrmgrid.wordpress.com/2009/03/16/mscrm-update-rollup-3-is-available/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/03/16/mscrm-update-rollup-3-is-available/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 16:15:21 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[update rollup]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=57</guid>
		<description><![CDATA[Just a quickie &#8211; it appears that Update Rollup 3 has been released for Microsoft Dynamics CRM 4.0.
This fixes about a dozen issues that are acknowledged in KB articles and more than 50 previously undocumented items too. The list of issues addressed can be found on KB961768
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=57&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just a quickie &#8211; it appears that <a href="http://www.microsoft.com/downloads/details.aspx?familyid=05453fa4-9551-4a88-9852-634a9ad0e140&amp;displaylang=en&amp;tm">Update Rollup 3</a> has been released for Microsoft Dynamics CRM 4.0.</p>
<p>This fixes about a dozen issues that are acknowledged in KB articles and more than 50 previously undocumented items too. The list of issues addressed can be found on <a href="http://support.microsoft.com/kb/961768">KB961768</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=57&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/03/16/mscrm-update-rollup-3-is-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>onLoad code not running</title>
		<link>http://thecrmgrid.wordpress.com/2009/03/12/onload-code-not-running/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/03/12/onload-code-not-running/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 18:27:10 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=42</guid>
		<description><![CDATA[Another strange problem encountered and fixed today. The form onLoad code &#8220;suddenly&#8221; stopped working. I say &#8220;suddenly&#8221; because in fact this was a red herring and the problem turned out to be the result of a change. The symptoms were however unexpected.
Normally when a scripting error occurs in MSCRM, Internet Explorer will throw a script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=42&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another strange problem encountered and fixed today. The form onLoad code &#8220;suddenly&#8221; stopped working. I say &#8220;suddenly&#8221; because in fact this was a red herring and the problem turned out to be the result of a change. The symptoms were however unexpected.</p>
<p>Normally when a scripting error occurs in MSCRM, Internet Explorer will throw a script error dialog as the form loads (e.g. &#8220;There was an error with this field&#8217;s customized event.&#8221;):</p>
<div id="attachment_43" class="wp-caption alignnone" style="width: 280px"><img class="size-full wp-image-43" title="scripterror" src="http://thecrmgrid.files.wordpress.com/2009/03/scripterror.png?w=270&#038;h=151" alt="scripterror" width="270" height="151" /><p class="wp-caption-text">There was an error with this field&#39;s customized event</p></div>
<p>  Or alternatively a warning is shown at the bottom left of the Internet Explorer screen:</p>
<div id="attachment_45" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-45" title="erroronpage" src="http://thecrmgrid.files.wordpress.com/2009/03/erroronpage.png?w=170&#038;h=49" alt="Error on page" width="170" height="49" /><p class="wp-caption-text">Error on page</p></div>
<p>But on this occasion, there were no warnings. My first thought was to place a debugger statement into the code, but even after publishing this too failed to execute. I tried a simple alert() statement but this also failed. Odd.</p>
<p>Replacing all the code in the event handler with a simple alert() statement <strong>did</strong> work, so clearly this was a syntax problem, but very odd that it didn&#8217;t throw any error and in fact even blocked the debugger statement. If I were to delve deeper I&#8217;m sure I&#8217;d find that this is due to try&#8230;catch handling within the MSCRM ASPX pages&#8230;</p>
<p>In the end, the problem was caused by an <em>htmlEncoded </em>chevron character which had somehow been pasted into the javascript code (&amp;&#35;60; ) while setting up a <em>for </em>loop.</p>
<p>Thanks due to Douglas Croxford&#8217;s <a href="http://www.jslint.com">JsLint</a> for speeding the time to resolution somewhat.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=42&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/03/12/onload-code-not-running/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>

		<media:content url="http://thecrmgrid.files.wordpress.com/2009/03/scripterror.png" medium="image">
			<media:title type="html">scripterror</media:title>
		</media:content>

		<media:content url="http://thecrmgrid.files.wordpress.com/2009/03/erroronpage.png" medium="image">
			<media:title type="html">erroronpage</media:title>
		</media:content>
	</item>
		<item>
		<title>Corrupted entity &#8211; NullReferenceException when publishing or exporting</title>
		<link>http://thecrmgrid.wordpress.com/2009/03/10/corrupted-entity-nullreferenceexception-when-publishing-or-exporting/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/03/10/corrupted-entity-nullreferenceexception-when-publishing-or-exporting/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 17:08:30 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=38</guid>
		<description><![CDATA[A corrupted entity
I ran into a problem today with my client which frankly had me stumped. For some reason that I have yet to determine (though possibly related to a broken install of Update Rollup 2), the account entity got corrupted. We discovered this when somebody attempted to publish their changes to the account entity [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=38&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>A corrupted entity</strong><br />
I ran into a problem today with my client which frankly had me stumped. For some reason that I have yet to determine (though possibly related to a broken install of <a href="http://support.microsoft.com/kb/959419">Update Rollup 2</a>), the account entity got corrupted. We discovered this when somebody attempted to publish their changes to the account entity and ran into a &#8220;red&#8221; error dialog: &#8220;An error has occurred&#8230;please contact your system administrator&#8221;. This error was replicated if we tried to publish, delete any attributes from the entity or export the entity customizations. Not much scope for fixing the situation!</p>
<p><strong>Troubleshooting&#8230;</strong><br />
After studying the server trace logs (thanks to <a href="http://blogs.msdn.com/benlec/pages/microsoft-crm-support-tools-download-page.aspx">CrmDiagTool4 </a>and Michael Hoehne&#8217;s <a href="http://www.stunnware.com/crm2/topic.aspx?id=TraceLogViewer">Trace Log Viewer</a> for easing this process), the situation wasn&#8217;t much clearer. The underlying error was:</p>
<pre class="brush: csharp;">
Request URL: http://localhost/MyOrgName/AppWebServices/SystemCustomization.asmx
Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoaderAllLanguages.LoadMetadataLabel(Int32 entityType, String attributeName, ExecutionContext context)
</pre>
<p>I also did a SQL Trace using SQL Profiler on the server, but this didn&#8217;t really provide anything new at all.</p>
<p>So, when faced with a problem I can&#8217;t resolve myself, I turned to Google for help. I managed to find <a href="http://support.microsoft.com/kb/947096">KB article 947096</a> which seemed very near to my problem, but sadly none of the resolution steps would help me. I then tried importing a known good copy of the account entity customizations but that failed too. At this point I looked back at the Trace Log and tried to determine what was going on &#8220;under the hood&#8221; prior to the failure&#8230;</p>
<p>It was clear from the logs that CRM was trying to pull in LocalizedLabel information for my entity attributes and form controls, however I couldn&#8217;t quite fathom out which attribute was causing the NullReferenceException (it seems that the last statement in the logs &#8211; MetadataProcessObject.ExecuteQuery &#8211; was successfully completing its SQL command and the following statement which was failing was not logging any parameters and therefore didn&#8217;t provide me with a &#8220;smoking gun&#8221;). In fact there were many calls to both CrmDbConnection.InternalExecuteReader and MetadataProcessObject.ExecuteQuery so clearly there was an interative loop going on. I didn&#8217;t know which mechanism within the CRM server black box was selecting the list of attributes to process, so I looked further back and found that this loop was likely being &#8220;triggered&#8221; by the FormXML property on the OrganisationUI view.</p>
<p>At this point everything clicked into place: the problem, somehow, was with the published version of my form (some of you may have realised this long ago). This form xml was being re-evaluated (for some reason) prior to every publish, export or delete request and then failing some integrity or logical check. Re-importing a known good copy would not help, since it would need to be published to take effect. I only had one option left &#8211; to break all the rules and manually amend the database in order to correct the corrupted FormXml property&#8230;</p>
<p>So here&#8217;s what I did:</p>
<p><strong>Resolution</strong><br />
Took a backup of the current formXml property by running the following SQL statement within SQL Server Management Studio in the &#8220;_MSCRM&#8221; database (then right click on results tab and click &#8220;save as&#8221;&#8230;):</p>
<pre class="brush: sql;">

select organizationui0.ObjectTypeCode organizationui0.FormXml as 'formxml',
from OrganizationUI as organizationui0
where (organizationui0.InProduction = 1 and (organizationui0.ObjectTypeCode = 1))
</pre>
<p>Next I found my &#8220;good&#8221; copy of the customizations file. I identified the start and end node that was required in order to match the same format as the existing formXML property (the starting tags were &lt;form&gt;&lt;entity&#8230;&gt;). Next I copied this xml to a new file and removed all tabs and new lines, to give a single continuous string.</p>
<p>I saved this xml file onto my CRM server then went back to SQL Management Studio and ran the following SQL to import this long string directly into the SQL table:</p>
<p><code> </code></p>
<pre class="brush: sql;">
declare @xmlText varchar(max)
select @xmlText =(select * from openrowset (bulk 'c:\amendedformxml.txt',SINGLE_CLOB)x)
update dbo.OrganizationUI
set FormXml = @xmlText
where (InProduction = 1 and (ObjectTypeCode = 1))
</pre>
<p>This effectively &#8220;forced&#8221; my old formXML into a published state and magically fixed my problems. Further, once I clicked &#8220;Publish&#8221; following these steps, the formXML was consequently re-evaluated again and the hitherto unpublished customizations become published (as expected) and therefore effectively no information had been lost by importing the older xml.</p>
<p><strong>Conclusion</strong><br />
So I still don&#8217;t know what caused this issue&#8230; I&#8217;d love to know if anyone else has had a similar situation. I&#8217;m not entirely comfortable with the way I had to fix the problem either, but then sometimes your hand is forced into doing things you don&#8217;t want to do. I&#8217;ll monitor the situation and let you all know if there are any repercussions. In the meantime, the usual caveats apply &#8211; the steps above are definitely unsupported and could definitely render your CRM installation inoperable, so use the steps above at your own risk!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=38&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/03/10/corrupted-entity-nullreferenceexception-when-publishing-or-exporting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>Minor problem after installing MSCRM 4.0 Update Rollup 2</title>
		<link>http://thecrmgrid.wordpress.com/2009/03/02/minor-bug-in-mscrm-40-update-rollup-2/</link>
		<comments>http://thecrmgrid.wordpress.com/2009/03/02/minor-bug-in-mscrm-40-update-rollup-2/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 15:22:47 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=33</guid>
		<description><![CDATA[Edit: It seems that the issue below was limited to my client&#8217;s machine only. I&#8217;ve reinstalled Update Rollup 2 and the problem went away&#8230; The rest of this post is here for reference:
It seems that there is a small bug introduced It seems that my client has encountered an issue with Update Rollup 2 for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=33&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Edit: It seems that the issue below was limited to my client&#8217;s machine only. I&#8217;ve reinstalled Update Rollup 2 and the problem went away&#8230; The rest of this post is here for reference:</p>
<p><span style="text-decoration:line-through;">It seems that there is a small bug introduced</span> It seems that my client has encountered an issue with Update Rollup 2 for Microsoft CRM. After installing, the form labels shown in the form designer are incorrectly reading from the published entity definitions, rather than the unpublished definitions. The result of this is that if you update a field label and click save, it appears not to have worked. If you ignore this apparent effect and publish your entity, lo! The field labels are indeed automagically updated after all.</p>
<p>Steps to reproduce:</p>
<ol>
<li>Open any entity for via Settings &gt; Customization &gt; Customize Entities &gt; &#8230;</li>
<li>Go to Forms and Views &gt; Form</li>
<li>Double-click any existing field and change the Label attribute then click OK</li>
<li>At this point, the amend appears correctly</li>
<li>Click the Save button on the form</li>
<li>Note that your label amendment appears to have been backed out&#8230;(!)</li>
<li>Close the form designer screen and from the entity record, click Actions &gt; Publish</li>
<li>Go back to the form designer via Forms and Views &gt; Form</li>
<li>Note that your label amendment has indeed persisted and is now also in production too</li>
</ol>
<p>Edit: so we fixed this by removing UR2, rebooting, downloading UR2 afresh, reinstalling UR2 and rebooting again. Can&#8217;t imagine what failed &#8211; perhaps I had an early release of Update Rollup 2 with a bug &#8211; I seem to recall that it was silently reissued shortly after release.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=33&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2009/03/02/minor-bug-in-mscrm-40-update-rollup-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft CRM Event Management Accelerator released!</title>
		<link>http://thecrmgrid.wordpress.com/2008/11/05/microsoft-crm-event-management-accelerator-released/</link>
		<comments>http://thecrmgrid.wordpress.com/2008/11/05/microsoft-crm-event-management-accelerator-released/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 11:51:06 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>
		<category><![CDATA[accelerators]]></category>
		<category><![CDATA[crm notifications]]></category>
		<category><![CDATA[event management]]></category>
		<category><![CDATA[sales forecasting]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=30</guid>
		<description><![CDATA[Great news &#8211; the much anticipated CRM Accelerators are finally starting to be released!
Initially there were two releases available on PartnerSource only, but now more code is appearing on Codeplex too: http://www.codeplex.com/crmaccelerators - specifically, we can now get our hands on the first really exciting one &#8211; the Event Management accelerator. This doesn&#8217;t appear to have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=30&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Great news &#8211; the much anticipated <a title="CRM Statement of Direction and CRM Accelerators" href="http://blogs.msdn.com/crm/archive/2008/07/28/crm-statement-of-direction-and-crm-accelerators.aspx" target="_blank">CRM Accelerators </a>are finally starting to be released!</p>
<p>Initially there were two releases available on <a title="Accelerators for Microsoft Dynamics CRM" href="https://mbs.microsoft.com/partnersource/newsevents/news/MD_CRM_Accelerators" target="_blank">PartnerSource </a>only, but now more code is appearing on Codeplex too: <a href="http://www.codeplex.com/crmaccelerators">http://www.codeplex.com/crmaccelerators</a> - specifically, we can now get our hands on the first really exciting one &#8211; the Event Management accelerator. This doesn&#8217;t appear to have been publicised so well just yet so I thought I&#8217;d shout up!</p>
<p>At the time of writing, it is now possible to download the following:</p>
<ul>
<li><strong>Event Management</strong> (Codeplex only at present)<br />
&#8220;Ability to manage the planning, execution, tracking and reporting requirements for events&#8230;&#8221; including an example external website allowing delegates to register themselves on your events and reports to measure effectiveness of your events.</li>
<li><strong>Notifications</strong><br />
Subscriptions to business events (e.g. new leads for current user) which are delivered via RSS feeds</li>
<li><strong>Extended Sales Forecasting<br />
</strong>Primarily, new reports to allow better visibility of sales forecasts, including individualised sales pipeline and per salesperson performance against forecast by time period</li>
</ul>
<p>Happy playing!</p>
<p><a href="https://mbs.microsoft.com/partnersource/newsevents/news/MD_CRM_Accelerators"></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=30&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2008/11/05/microsoft-crm-event-management-accelerator-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>
	</item>
		<item>
		<title>Mail merge with CRM Web Client fails &#8211; cannot find data source</title>
		<link>http://thecrmgrid.wordpress.com/2008/08/29/mail-merge-with-crm-web-client-fails-cannot-find-data-source/</link>
		<comments>http://thecrmgrid.wordpress.com/2008/08/29/mail-merge-with-crm-web-client-fails-cannot-find-data-source/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 16:09:45 +0000</pubDate>
		<dc:creator>Greg Owens</dc:creator>
				<category><![CDATA[MSCRM]]></category>
		<category><![CDATA[cannot find data source]]></category>
		<category><![CDATA[crm 4.0]]></category>
		<category><![CDATA[crm web client]]></category>
		<category><![CDATA[mail merge]]></category>
		<category><![CDATA[mailmerge]]></category>
		<category><![CDATA[microsoft dynamics crm]]></category>
		<category><![CDATA[office 2007]]></category>
		<category><![CDATA[office 2007 sp1]]></category>

		<guid isPermaLink="false">http://thecrmgrid.wordpress.com/?p=26</guid>
		<description><![CDATA[We ran into an issue last week where attempts to mail merge (specifically the &#8220;Print Quote for Customer&#8221; button) were failing. CRM would provide a Word document for download, but opening the document resulted in a warning:
This message was followed with&#8230; no SQL command. Clicking on &#8220;Yes&#8221; to continue, presented the message:
No matter which templates [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=26&subd=thecrmgrid&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We ran into an issue last week where attempts to mail merge (specifically the &#8220;Print Quote for Customer&#8221; button) were failing. CRM would provide a Word document for download, but opening the document resulted in a warning:</p>
<div id="attachment_27" class="wp-caption aligncenter" style="width: 310px"><a href="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-1.png"><img class="size-medium wp-image-27" src="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-1.png?w=300&#038;h=121" alt="" width="300" height="121" /></a><p class="wp-caption-text">Opening this document will run the following SQL command:</p></div>
<p>This message was followed with&#8230; no SQL command. Clicking on &#8220;Yes&#8221; to continue, presented the message:</p>
<div id="attachment_28" class="wp-caption aligncenter" style="width: 310px"><a href="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-2.png"><img class="size-medium wp-image-28" src="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-2.png?w=300&#038;h=79" alt="Mail_Merge_&lt;random numbers&gt;.doc is a mail merge main document. Word cannot find its data source, ." width="300" height="79" /></a><p class="wp-caption-text">Mail_Merge_.doc is a mail merge main document. Word cannot find its data source, .</p></div>
<p>No matter which templates were selected or which permissions were granted, the same error occurred.</p>
<p>This seemed to happy with machines that had the web client only (unconfirmed, but I believe this does not happen with the Outlook CRM client) and Office 2007 SP1.</p>
<p>A call to Microsoft support has verified that this is known issue, albeit undocumented for the public. It seems that Service Pack 1 for Office 2007 introduces an issue for mail merging from the web client. Apparently a hotfix is in the making but this is not being considered as a high-priority fix.</p>
<p>If you know of any workarounds let me know. If you have the problem yourself, get in touch with Microsoft and let them know so we can get a hotfix moved up their to-do list!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrmgrid.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrmgrid.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrmgrid.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrmgrid.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrmgrid.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrmgrid.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrmgrid.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrmgrid.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrmgrid.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrmgrid.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrmgrid.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrmgrid.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrmgrid.wordpress.com&blog=1975997&post=26&subd=thecrmgrid&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrmgrid.wordpress.com/2008/08/29/mail-merge-with-crm-web-client-fails-cannot-find-data-source/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e52dfb296d5000ad5cbe8f8d1c0ba4d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Grego</media:title>
		</media:content>

		<media:content url="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-1.png?w=300" medium="image" />

		<media:content url="http://thecrmgrid.files.wordpress.com/2008/08/crm-mail-merge-error-2.png?w=300" medium="image">
			<media:title type="html">Mail_Merge_&#60;random numbers&#62;.doc is a mail merge main document. Word cannot find its data source, .</media:title>
		</media:content>
	</item>
	</channel>
</rss>