Tuesday, 30 January 2018

Log Run time String Truncation issue to Windows Event Log.

Log Run time String Truncation issue to Windows Event Log.

Some times, it will be very strenuous to find a runtime issue such as String Truncation. To find this kind of issues Microsoft provide a command for developer to log Windows events when such issue occurs.

Command Line Syntax
Ax32.exe -logstrtrunc
Ax32serv.exe -logstrtrunc

Registry Keys

Alternatively, an optional Windows Registry key for the logstrtrunc option can added, either manually using regedit.exe, or by double-clicking on a .REG file containing the following data:


REGEDIT

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Dynamics\6.0\Configuration\Original (installed configuration)]

"logstrtrunc"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dynamics Server\6.0\01\Original (installed configuration)]

"logstrtrunc"=dword:00000001

When the logstrtrunc option is on, every time an X++ max-length string gets truncated, the system writes an entry to the Application section of the Windows Event Log. You can view these entries by using the Windows Event Viewer.

For other client configuration commands Refer : https://msdn.microsoft.com/en-us/library/aa569653.aspx

No comments:

How to Get Trade Agreement Line Discount Percentage by Item and Date in D365FO Using X++

  In Microsoft Dynamics 365 Finance and Operations (D365FO), trade agreements are used to manage prices and discounts for customers, vendor...