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
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