Can i catch error message without "GETLASTERRORTEXT" ?

BestVayneADCBestVayneADC Member Posts: 23
edited 2020-07-03 in NAV Three Tier
I would like to track every error message and time of error message and save result into my table
without GETLASTERRORTEXT, Can i do it?

Answers

  • JJMcJJMc Member Posts: 60
    AsfaIr, there is a publication in the database module, where you can suscribe to an event as OnBefore or OnAfterErrorMessage.
  • BestVayneADCBestVayneADC Member Posts: 23
    Thank you but i don't know much about database module, Can you give me an example?
  • ShaiHuludShaiHulud Member Posts: 228
    Alternatively:
    Errors from NAV also get logged in the WIndows Event Log. You could set up a Job Queue that periodically reads the Event Log, parses the error messages and saves them into a table in NAV.
  • JJMcJJMc Member Posts: 60
    Good morning.
    I'm so sorry......

    I did this in an old customer in NAV2009R2, but I'm looking for the code and I can't find it now, and I can't remember how I did ir, but, honestly.... I did it.
    If it rings a bell to anyone, they might help you.

    Sorry again.
Sign In or Register to comment.