How to set up NAV for error handling?

FranVLCFranVLC Member Posts: 22
Hi all.

I was reading about GETLASTERROR and CLEARLASTERROR functions, until I readed that in the MSDN Help:

"You can set up Microsoft Dynamics NAV so that it keeps running even if a run-time error occurs."

I wonder how do you set up this behavior :-k ...

Thank you!
Thank you very much to all users who actively participate in this forum!

Answers

  • mbjmbj Member Posts: 63
    Write your unsafe code in a codeunit and run it from an other codeunit.



  • FranVLCFranVLC Member Posts: 22
    Thanks! :thumbsup:
    Thank you very much to all users who actively participate in this forum!
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]


    PS: when you do a "IF [NOT] CODEUNIT.RUN THEN ...", you may NOT have an open transaction. If you have, you will get a (BIG) errormessage.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.