Yes, AL Runtime 2.0 (NAV 2018 extensions) supports TryFunction using the [TryFunction] attribute, so you can call a function and check if it returns false instead of throwing an error; however, it’s limited compared to modern Business Central because it doesn’t support full try..catch syntax and you shouldn’t perform database write operations (Insert/Modify/Delete/Commit) inside a TryFunction, as it’s mainly intended to suppress and handle errors raised by ERROR in server-side logic.
Regards,
Oussama Sabbouh
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.