You can set up Microsoft Dynamics NAV so that it keeps running
even if a run-time error occurs. You can use the GETLASTERRORTEXT
Function to determine whether an error has occurred and
to see the actual text in the last error message that was
generated. You can then use the CLEARLASTERROR function to remove
the last error message from memory. If you subsequently call the
GETLASTERRORTEXT function, an empty string is returned.