web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

AL Development

(1) ShareShare
ReportReport
Posted on by 65
Hello Experts,

Does AL Runtime version 2.0 (which has been used in NAV2018 Extension Development) support TRY-FUNCTION in extension development?
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,406 Super User 2026 Season 1 on at
    Hello,
     
    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

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,358 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,160 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,093 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans