The description for Event ID ( nnnnn ) in Source ( XXXXX ) cannot be found

Everybody who worked with Navision Application Server or NAV client or Navision Database Server knows that text from their event log. Now, I can show you how to clear this text from your event log.

  1. Some info about how the Event log is displaying the messages:
  • Events in event log are just set of attributes and texts. Event log viewer is able to take these attributes and send it to the application which generate it for “translation” (for example, application can add some useful information for the user…). To be able to send it to the application, the event log viewer must know the library, which is responsible for translating the message. Of course, this is written in the registry (I will show you where… ;-)
  • Because previous point, the resultant text depends on computer, where you are viewing it. When you view event log from exchange server on PC with Windows XP, event viewer will not know anything about exchange and will show you the information “The description for Event ID ( nnnnn ) in Source ( XXXXX ) cannot be found…”. Same thing will happen with NAS messages…
  1. You can found that all services for NAS registered through command prompt (installasservice) are not including this text in their messages. Just service registered through installation process have this “problem”.
  2. To know more, you need to look into this registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application. You can see, that there are keys for all services, which are registered in Windows. In each key are two or more values. The main two are EventMessageFile and TypesSupported. First one is text and it is the path and filename of the library responsible for the “translation”, second one is just some attribute. If the reg key for the service code saved in the Source field of the message is not existing, the event log will include the text:

     

    The description for Event ID ( XXXXX ) in Source ( <Service name> ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:

     

  3. To solve this, you just need to create the key with name <Service name> and set the two values. The resultant reg file will look like:

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\<Service Name>]

“EventMessageFile”=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,\

00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,\

6f,00,73,00,6f,00,66,00,74,00,20,00,42,00,75,00,73,00,69,00,6e,00,65,00,73,\

00,73,00,20,00,53,00,6f,00,6c,00,75,00,74,00,69,00,6f,00,6e,00,73,00,2d,00,\

4e,00,61,00,76,00,69,00,73,00,69,00,6f,00,6e,00,5c,00,41,00,70,00,70,00,6c,\

00,69,00,63,00,61,00,74,00,69,00,6f,00,6e,00,20,00,53,00,65,00,72,00,76,00,\

65,00,72,00,5c,00,6e,00,61,00,73,00,73,00,71,00,6c,00,2e,00,65,00,78,00,65,\

00,00,00

“TypesSupported”=dword:00000007

 

That’sall folks! You can use that to solve this problem with every application. But you just needs to know, which file is the correct translator.

 

2 thoughts on “The description for Event ID ( nnnnn ) in Source ( XXXXX ) cannot be found”

  1. i will never understand, why people that are making application setups avoid to enter these values into registry on setup. there’s bunch of applications that aren’t use event manager properly.

  2. Just wanted to add, how to use th fix. Basically
    copy and pasted everything to text file.
    including Windows Registry Editor Version 5.00
    then change the Server Name remove the <>

    then change the file extension to .reg

    then copy it to the computer where NAS is installed and double click on it. It will ask to register it, choose yes.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>