<?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>Trace.WriteLine(_blogTitle); &#187; Debugging</title> <atom:link href="http://www.langalaxy.de/tag/debugging/feed/" rel="self" type="application/rss+xml" /><link>http://www.langalaxy.de</link> <description>Random output</description> <lastBuildDate>Fri, 28 Oct 2011 17:20:03 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Common errors on organization import</title><link>http://www.langalaxy.de/2010/02/common-errors-on-organization-import/</link> <comments>http://www.langalaxy.de/2010/02/common-errors-on-organization-import/#comments</comments> <pubDate>Sun, 21 Feb 2010 19:55:16 +0000</pubDate> <dc:creator>ckeller</dc:creator> <category><![CDATA[Dynamics CRM]]></category> <category><![CDATA[CRM 4]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[Import]]></category> <category><![CDATA[Redeployment]]></category> <category><![CDATA[Tracing]]></category><guid
isPermaLink="false">http://www.langalaxy.de/?p=371</guid> <description><![CDATA[When you import organizations into an existing environment, there is the possibility that the import could fail. This post should help you to solve the most common issues. With large organizations, the most likely problem is that the import process runs into a timeout when it updates the user mapping. Update Rollup 8 contains a [...]]]></description> <content:encoded><![CDATA[<p>When you import organizations into an existing environment, there is the possibility that the import could fail. This post should help you to solve the most common issues.</p><p>With large organizations, the most likely problem is that the import process runs into a timeout when it updates the user mapping. Update Rollup 8 contains a fix for this problem which has to be enabled manually. See <a
href="http://xrm.ascentium.com/blog/crm/Post768.aspx">http://xrm.ascentium.com/blog/crm/Post768.aspx</a>.</p><p>Another common issue is that the import fails with the following error</p><blockquote><p>ExecuteNonQuery requires an open and available Connection. The connection&#8217;s current state is closed.</p></blockquote><p>This error is likely caused by an issue in the .NET 2 Framework. See this article of the EMEA CRM Support team for a description<br
/> <a
href="http://blogs.msdn.com/emeadcrmsupport/archive/2009/10/12/error-while-importing-an-organization-executenonquery-requires-an-open-and-available-connection.aspx">http://blogs.msdn.com/emeadcrmsupport/archive/2009/10/12/error-while-importing-an-organization-executenonquery-requires-an-open-and-available-connection.aspx</a></p><p>Another cause of this issue are reports which could not be published to the report server by any reason. For example, reports which are spiced up with custom assemblies cannot be published without the referenced assemblies. The import will fail when it tries to publish such a report. In this case enable the tracing, which generates a trace file for the mmc-console. With help of this file you can identify the report which is making problems. To solve the issue, you can either delete it directly from the database (unsupported) or you delete it prior to the backup of the originating system. After the successful import, you can import the problematic report again.</p><p>See this thread in the CRM Deployment forum for further description <a
href="http://social.microsoft.com/Forums/en/crmdeployment/thread/1336bb5d-a119-44e3-83dd-1f557edccc31">http://social.microsoft.com/Forums/en/crmdeployment/thread/1336bb5d-a119-44e3-83dd-1f557edccc31</a></p> ]]></content:encoded> <wfw:commentRss>http://www.langalaxy.de/2010/02/common-errors-on-organization-import/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Howto: debug mailing errors</title><link>http://www.langalaxy.de/2010/02/howto-debug-mailing-errors/</link> <comments>http://www.langalaxy.de/2010/02/howto-debug-mailing-errors/#comments</comments> <pubDate>Mon, 15 Feb 2010 18:34:23 +0000</pubDate> <dc:creator>ckeller</dc:creator> <category><![CDATA[Dynamics CRM]]></category> <category><![CDATA[CRM 4]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[E-Mail Router]]></category> <category><![CDATA[Outlook Client]]></category><guid
isPermaLink="false">http://www.langalaxy.de/?p=374</guid> <description><![CDATA[If you are sending emails from Dynamics CRM, there is the possibility that the process of sending the mails fails. This article should give you a short overview on existing articles, which are describing the debugging details. In order to look whether there are pending or failed mails in your system, you can use following [...]]]></description> <content:encoded><![CDATA[<p>If you are sending emails from Dynamics CRM, there is the possibility that the process of sending the mails fails. This article should give you a short overview on existing articles, which are describing the debugging details.</p><p>In order to look whether there are pending or failed mails in your system, you can use following search. As you can see, it is based on the existing view &#8216;My pending E-mails&#8217;. You simply have to remove the &#8216;Owner = current user&#8217; condition.</p><p><a
href="http://www.langalaxy.de/wp-content/uploads/2010/02/Pending-emails1.png"><img
class="aligncenter size-full wp-image-378" title="Pending-emails" src="http://www.langalaxy.de/wp-content/uploads/2010/02/Pending-emails1.png" alt="" width="600" height="484" /></a></p><p>If the result of this search contains mails which are in pending state since ages or have failed to send, it&#8217;s debugging time again. If you are using the Outlook Client for sending the mail, then take a look at <a
href="http://blogs.msdn.com/emeadcrmsupport/archive/2009/12/18/how-to-activate-crm-4-0-platform-tracing-on-server-client-and-e-mail-router.aspx">http://blogs.msdn.com/emeadcrmsupport/archive/2009/12/18/how-to-activate-crm-4-0-platform-tracing-on-server-client-and-e-mail-router.aspx</a> for a description on enabling the tracing.</p><p>The debugging on the E-Mail Router side is a little bit more complex, but it is explained in detail in this article <a
href="http://blogs.msdn.com/benlec/archive/2008/03/25/how-to-implement-logging-for-the-microsoft-crm-4-0-e-mail-connector.aspx">http://blogs.msdn.com/benlec/archive/2008/03/25/how-to-implement-logging-for-the-microsoft-crm-4-0-e-mail-connector.aspx</a></p> ]]></content:encoded> <wfw:commentRss>http://www.langalaxy.de/2010/02/howto-debug-mailing-errors/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>System.InvalidOperationException at crm logon</title><link>http://www.langalaxy.de/2009/11/system-invalidoperationexception-at-crm-logon/</link> <comments>http://www.langalaxy.de/2009/11/system-invalidoperationexception-at-crm-logon/#comments</comments> <pubDate>Tue, 17 Nov 2009 17:58:56 +0000</pubDate> <dc:creator>ckeller</dc:creator> <category><![CDATA[Dynamics CRM]]></category> <category><![CDATA[CRM 4]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[Hints]]></category> <category><![CDATA[SQL]]></category> <category><![CDATA[Support]]></category><guid
isPermaLink="false">http://www.langalaxy.de/?p=283</guid> <description><![CDATA[Today I had a service call with Microsoft CRM Support. After the import of an organization into a development system at a client, it stopped working. Trying to logon CRM via web client fails with error message: System.InvalidOperationException: ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in [...]]]></description> <content:encoded><![CDATA[<p>Today I had a service call with Microsoft CRM Support. After the import of an organization into a development system at a client, it stopped working. Trying to logon CRM via web client fails with error message:</p><blockquote><p>System.InvalidOperationException: ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction.  The Transaction property of the command has not been initialized.</p></blockquote><p>The solution of this problem was quite simple (after the reason was found). The application pool of the system had insufficient rights for the organization database.</p><p>To get the system up and running again you have to</p><ol><li>Identify the identity of the application pool</li><li>Ensure the app pool idenity has a sql user assigned for the organization database</li><li>Grant the app pool identity the right db_owner on the organization database</li><li>Restart IIS</li></ol> ]]></content:encoded> <wfw:commentRss>http://www.langalaxy.de/2009/11/system-invalidoperationexception-at-crm-logon/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>CRM log file locations</title><link>http://www.langalaxy.de/2009/09/crm-log-file-locations/</link> <comments>http://www.langalaxy.de/2009/09/crm-log-file-locations/#comments</comments> <pubDate>Tue, 08 Sep 2009 20:16:57 +0000</pubDate> <dc:creator>ckeller</dc:creator> <category><![CDATA[Dynamics CRM]]></category> <category><![CDATA[CRM 4]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[Logs]]></category> <category><![CDATA[Tracing]]></category><guid
isPermaLink="false">http://www.langalaxy.de/?p=235</guid> <description><![CDATA[Every part of a Microsoft Dynamics CRM implementation produces some log output. In addition to the standard logging, you could enable tracing for nearly every CRM component for debugging purposes. This post shows where you can find these log and trace files. For enabling the generation of trace files see http://support.microsoft.com/kb/907490. Please keep in mind [...]]]></description> <content:encoded><![CDATA[<p>Every part of a Microsoft Dynamics CRM implementation produces some log output. In addition to the standard logging, you could enable tracing for nearly every CRM component for debugging purposes.</p><p>This post shows where you can find these log and trace files. For enabling the generation of trace files see <a
href="http://support.microsoft.com/kb/907490">http://support.microsoft.com/kb/907490</a>. Please keep in mind that although the article says that you can configure the folder in which the trace files are generated via <em>TraceDirectory</em>, the location is hard coded in the applications. You can set a value, but it will be ignored.</p><p><strong>Outlook Client</strong></p><ul><li>Standard log files %APPDATA%\Microsoft\MSCRM\Logs</li><li>Autoupdate log files %APPDATA%\Microsoft\MSCRM\AutoUpdate</li><li>Trace files %APPDATA%\Microsoft\MSCRM\Traces</li></ul><p><em>Note: Since Update Rollup 7, these paths are switched to the %LOCALAPPDATA% folder in order to have a smaller roaming profile.</em></p><p><strong>E-Mail Router</strong></p><ul><li>You can configure the log file path. See <a
href="http://blogs.msdn.com/benlec/archive/2008/03/25/how-to-implement-logging-for-the-microsoft-crm-4-0-e-mail-connector.aspx">http://blogs.msdn.com/benlec/archive/2008/03/25/how-to-implement-logging-for-the-microsoft-crm-4-0-e-mail-connector.aspx</a> for reference</li></ul><p><strong>Data Migration Manager</strong></p><ul><li>Trace files %APPDATA%\Microsoft\MSCRM\Traces</li></ul><p><strong>CRM Server</strong></p><ul><li>Trace files {Install dir of application}\Trace</li><li>Setup log files, Deployment Manager, &#8230; %APPDATA%\Microsoft\MSCRM\Logs</li></ul><p><strong>Event log</strong><br
/> In addition to the log files, there is also useful information in the application event log. With the installation of CRM you get following new event sources</p><ul><li>MSCRMCallout</li><li>MSCRMDeletionService</li><li>MSCRMDeployment</li><li>MSCRMEmail</li><li>MSCRMKeyArchiveManager</li><li>MSCRMKeyGenerator</li><li>MSCRMKeyService</li><li>MSCRMLocatorService</li><li>MSCRMPerfCounters</li><li>MSCRMPlatform</li><li>MSCRMReporting</li><li>MSCRMTracing</li><li>MSCRMWebService</li></ul><p><strong>Update</strong><br
/> Added note for Outlook Client log paths for version Rollup 7 or higher</p> ]]></content:encoded> <wfw:commentRss>http://www.langalaxy.de/2009/09/crm-log-file-locations/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Howto: Debugging CRM errors</title><link>http://www.langalaxy.de/2009/08/howto-debugging-crm-errors/</link> <comments>http://www.langalaxy.de/2009/08/howto-debugging-crm-errors/#comments</comments> <pubDate>Mon, 24 Aug 2009 19:03:27 +0000</pubDate> <dc:creator>ckeller</dc:creator> <category><![CDATA[Dynamics CRM]]></category> <category><![CDATA[Debugging]]></category> <category><![CDATA[HowTo]]></category> <category><![CDATA[Support]]></category> <category><![CDATA[Tracing]]></category><guid
isPermaLink="false">http://www.langalaxy.de/?p=200</guid> <description><![CDATA[Today I had a service call with a customer who got an error on creating appointments. The error message was General Failure in Scheduling Engine A quick search in the internet revealed that this error message is not an unknown one (at least for Dynamics CRM 3) http://ronaldlemmen.blogspot.com/2007/05/error-when-creating-new-appointment.html http://support.microsoft.com/default.aspx/kb/917010/en-us Because the description of the articles [...]]]></description> <content:encoded><![CDATA[<p>Today I had a service call with a customer who got an error on creating appointments. The error message was <em>General Failure in Scheduling Engine</em></p><p>A quick search in the internet revealed that this error message is not an unknown one (at least for Dynamics CRM 3)</p><ul><li><a
href="http://ronaldlemmen.blogspot.com/2007/05/error-when-creating-new-appointment.html">http://ronaldlemmen.blogspot.com/2007/05/error-when-creating-new-appointment.html</a></li><li><a
href="http://support.microsoft.com/default.aspx/kb/917010/en-us">http://support.microsoft.com/default.aspx/kb/917010/en-us</a></li></ul><p>Because the description of the articles were not suitable for the customers environment and the CRM system is a newer one ( Dynamics CRM 4), we had to dig further.</p><p>We enabled the tracing on the crm application server and set the TraceCategories to *:Error which writes only the message with TraceLevel  Error to the trace file.</p><p>The generated trace file contained following error<br
/> <code>...<br
/> Crm Exception: Message: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: bcf9bb2e-6070-de11-a4a6-000c29abeb6c and PrivilegeId: b5f2ee06-d359-4495-bbda-312aae1c6b1e, ErrorCode: -2147220960<br
/> ...<br
/> MessageProcessor fail to process message 'Book' for 'appointment'.<br
/> ...<br
/> </code></p><p>A quick search for the name of the denied privilege showed that the security role of the user doesn&#8217;t give him the right to share appointments. Apparently, this right is needed for <em>creating</em> an appointment. After adjusting the security role the error was gone and the customer was happy.</p> ]]></content:encoded> <wfw:commentRss>http://www.langalaxy.de/2009/08/howto-debugging-crm-errors/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 422/466 objects using disk: basic

Served from: www.langalaxy.de @ 2012-02-07 02:57:26 -->
