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

Announcements

No record found.

News and Announcements icon
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 625

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

  • Suggested answer
    Steven Renders Profile Picture
    5,698 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
    638 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
  • 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
    625 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans