Thursday, 26 November 2015

Using Acumatica First Chance Exception Log

Hi Everyone,

Acumatica has very powerful feature to catch and logging all exceptions that that has been thrown inside the system and application code. You are able to activate it in the Application Settings section of web.config file.

<add key="EnableFirstChanceExceptionsLogging" value="false" />
<add key="FirstChanceExceptionsLogFileName" value="firstchanceexceptions.log" />

If you do not change the file name, it will be available by this path: “<SiteFolder>\App_Data\firstchanceexceptions.log”

This log can help a lot if you get any error without stack trace, or when you getting any problem without any information in the UI. Also this log can be very useful for Acumatica support team.

You need to understand that using this mechanism you will catch all exception even good and handled ones. Because of this system will fill this log file quite fast, so i recommend you to enable it only for short periods of time, where you are investigation the issue.

Starting from Acumatica 5.2 you also can enable if from user interface.

No comments: