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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Error Handeling in Business Central

(0) ShareShare
ReportReport
Posted on by 607

Hi All,

Can somebody explain how the error handeling working in D365 BC? And how exceptions of types Deadlocks,update Conflict if exists is handled in D365 BC.

Thanks in Advance

I have the same question (0)
  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    I think that you can find a lot of information about that here:

    docs.microsoft.com/.../performance-developer

    docs.microsoft.com/.../performance-developer

  • Verified answer
    Rehan Satti Profile Picture
    634 on at

    Hi,

    You should use the try function to handle the exception.  Try function will take care of update conflict.

    Please see the following link for details information.

    docs.microsoft.com/.../handling-errors-by-using-try-functions

  • Verified answer
    keoma Profile Picture
    32,729 on at

    goto docs.microsoft.com/.../devenv-trymethod-property

  • Verified answer
    Terrance Morgan Profile Picture
    515 on at

    A function that is designated as a try function has a Boolean return value (true or false) and has the construction OK:= MyTryFunction. A try function cannot have a user-defined return value.

    If a try function call does not use the return value, the try function operates like an ordinary function and errors are exposed as usual.

    If a try function call uses the return value in an OK:= statement or a conditional statement such as IF-THEN, errors are caught. The try function returns true if no error occurs; false if an error occurs.

  • AXBOY Profile Picture
    607 on at

    Thank you All.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans