Tuesday, 10 January 2017

Generating traces to debug issues in Outlook for Dynamics CRM

Sometimes getting the error reason for errors in Outlook for Dynamics CRM can be tricky and non-trivial. Please follow the below steps to obtain the error trace in case any error occurs in Outlook for CRM:

  • In the machine where Outlook is installed please install CRM SDK. For example you can obtain CRM 2015 SDK from here.
  • Find the Diagnostics application from within the SDK as shown below:


  • Double click and open the application and select the below option as shown (keep the level to error) and click on save




4      Perform the operation from within Outlook and let the error take place
5
  •          In the background the trace will be generated in the below location (for Windows >= 7)

%%USER_PATH%%\AppData\Local\Microsoft\MSCRM\Traces
Ex:
C:\Users\johndoe\AppData\Local\Microsoft\MSCRM\Traces

Please note AppData might be hidden by default, please unhide it first to reveal the folders underneath.

  • Please open the log from the above location and verify it contains some meaningful text.In case it does not contain any, please update the Level to Verbose in step 3 and perform the next steps again


  • Once a meaningful trace file is generated in step 6, please disable the option selected in step 3, so that the local storage does not get overwhelmed with log files (especially when the trace is Verbose).