Intercept error message

abab Member Posts: 37
Hallo,

I have writing a program (nav 3.70) that process automaticaly data. Sometime this gives an error message
and the program stops until I have closed the error message.
How can I intercept those error messages so that my program can continu to run without my intervention ?

Thx

Alexander

Comments

  • krikikriki Member, Moderator Posts: 9,110
    Put your code in a codeunit and call the codeunit as follows:
    IF CODEUNIT.RUN(CODEUNIT::"Your Codeunit") THEN
      MESSAGE('Ok')
    ELSE
      MESSAGE('Some Error');
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • bbrownbbrown Member Posts: 3,268
    If you suppress the system error handling, you must handle any data rollback as the system will not execute its normal error-based rollback. This is if your process has updated any data.
    There are no bugs - only undocumented features.
Sign In or Register to comment.