Enable Tracing for Dynamics CRM on premises


By Enabling tracing, there created some files that monitor the actions that are performed by Microsoft CRM. These files are helpful when you need to troubleshoot error messages as we can find more information about the issues/errors.
We can enable tracing for dynamics CRM on premises by adding some registry keys on CRM server. However, make sure to follow following steps carefully, as there might occur serious problems when you modify registry incorrectly.
1.     Go to CRM server
Open registry (runà regedit)
2.     HKEY_LOCAL_MACHINEàSoftwareà MicrosoftàMSCRMàadd new keys
a.     Name: TraceEnabled
Type: DWORD
Value: 1
b.     Name: TraceDirectory
Type: String
Value: C:\CRMTrace
c.     Name: TraceRefresh
Type: DWORD
Value: 99
3.     Create the folder "CRMTrace" in C directory
4.     Reset IIS (Run CMD as administrator >> execute this “iisreset” command )

After doing above steps, perform the action with CRM where you were facing issues, then go to folder (Trace directory), there you will find some tracing files will be created containing detail description.

After troubleshooting your issues, we should disable (provide value “0” to TraceEnabled registry key) the tracing and resetting the IIS. As constant tracing running will have a performance impact on your system and consume disk space.

Enjoy Bug fixing!!!

3 comments: