System messages in Attain

incontrovertableincontrovertable Member Posts: 5
edited 2003-07-07 in Navision Attain
Hi, All!

I've encountered the following problem: suppose we have a Codeunit with a call inside it to run some dataport. If error occurs while running dataport (e.g. file to import is not accessible or corrupted), the system
shows warning message and waits until user pushes "OK" to skip it. But the execution of the Codeunit is stopped at this moment.

Is there any way to ignore such system messages at all and get the Codeunit running on (without user interaction)?

Hope there will be good ideas.

Comments

  • GoMaDGoMaD Member Posts: 313
    Have you tried the SingleInstance property on the CodeUnit settings?

    This is used for the NAS and when you run this codeunit via the NAS it will send all the messages and errors to the Event Viewer of the Server on which the NAS is running. But it will continue working after an error.

    Greetings
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
  • incontrovertableincontrovertable Member Posts: 5
    OK, this is very handy thing, thank you!
    But what about other objects, are there any ways to solve this very problem?
  • GoMaDGoMaD Member Posts: 313
    the NAS is a faceless client of navision and all the mesages and errors are sent to the Event Viewer.

    This means that it will work with all possible types of objects EXCEPT for Dataports. These can not be executed by a NAS.
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
Sign In or Register to comment.