05/14/2020

By Nikhil Rajendran | Reading time 5 mins

Plugin error log settings update in Dynamics 365

As a developer, there are times when you need to debug a plugin. In order to do that, typically you would have written some trace statements or you were planning to get the error logs and step through the code in Visual Studio.

 

One thing is common – both the types of debugging need the error logs to be downloaded. There could be a few instances where you might not have gotten the error logs. So let’s take a look at a couple of settings which need to be taken care of.

 

  • Ensure that the step is being profiled! We might be so caught up in the situation trying to resolve the issue that we might have forgotten to profile the step.
Plugin error log settings update in Dynamics 365 - AhaApps

15 Questions to Identify the Gaps in Your CRM

CRM Checklist - AhaApps
  • Ensure that the organization’s error logs settings are set to capture all details of error logs. To do that, click on Settings/Advanced Settings
Plugin error log settings update in Microsoft Dynamics 365 - AhaApps

Go to Settings/Administration/System Settings.

Plugin error log settings update in Microsoft Dynamics CRM - AhaApps
System Setting in Dynamics 365 - AhaApps

Click on the Customization tab. Under plugin and custom workflow activity tracing, ensure the setting for “Enable logging to plug-in trace log is set to “All”. Once you selected that option, Click Ok.

 

A lot of the developers forget about the above settings change because, by default, the logging is set to off. We need to manually change it to “All” to enable the logging.

 

It is recommended to disable the capturing of logs in Prod (turn the above setting to off) because it can prevent the unnecessary capture of error logs. If there is an issue, we can always replicate it in DEV/QA environments and capture the logs there.

 

If you want to know more about Dynamics CRM and the way it can revolutionize your operations, connect with us today.

Author’s bio:

Nikhil has been with AhaApps since 2017 as a Microsoft Dynamics CRM Developer. He is a driven CRM expert who is ready to fight off the challenges in the Dynamics world with his technical know-how and prowess. He is a sports enthusiast and loves to play tennis when he gets time. He is also a voracious reader and enjoys reading philosophical books.

Session Timeout Settings in Dynamics 365 CRM

Learn how to tweak the session timeout settings from Sunil, our Dynamics CRM guru in the next blog.