Behavior of MESSAGE statement running under NAS

rsaritzkyrsaritzky Member Posts: 469
Does anyone know what happens to a codeunit that runs a MESSAGE statement while running under NAS? If it is a process that is supposed to loop through a bunch of records, does it stop and wait forever? I am new to building codeunits that run under NAS and I am reading someone else's code. Normally I would expect something like:

IF GUIALLOWED THEN
MESSAGE('.....)

but there is no IF GUIALLOWED in the code I am reading. I am wondering if it matters.

Thx

Ron
Ron

Comments

  • DenSterDenSter Member Posts: 8,304
    MESSAGE and ERROR get written to the event log. Try it. Remove the GUIALLOWED part and run MESSAGE('hello world') under NAS, your message will show up in the event log.
  • garakgarak Member Posts: 3,263
    But doen't forgett, if your message will display, for example 1000000x, your eventlog can be growth and then it can be full. So check also the settings of the eventlog.
    Do you make it right, it works too!
Sign In or Register to comment.