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

Codeunit Post

(0) ShareShare
ReportReport
Posted on by 23

Hello,

So I have a page that leads to this codeunit for "post" confirmation

so there's a message pop up when something went wrong/error

but when error encountered, the Dynamics NAV ERP doesn't show any error, instead it goes to that message and doesn't show the error message

it;s like somehow the error message replaced by that message.

From debugging I can see the error message and after the error encountered the debugger immediately go to that message in the codeunit

and the posting process still working for the next one.

Doesn't nav supposedly to stop any process when error encountered?

I have the same question (0)
  • Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    It would be good, if you please snapshot of your error message  here through debugging.

  • Verified answer
    YUN ZHU Profile Picture
    95,761 Super User 2025 Season 2 on at

    Hi, Please check your Break Rules first, whether Break On Error is selected.

    pastedimage1662536578488v1.png

    Another possibility that, are Try Functions used in the code?

    More details: https://docs.microsoft.com/en-us/dynamics-nav/handling-errors-by-using-try-functions

    Hope this can give you some hints.

    Thanks.

    ZHU

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 2,126

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 744 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 674 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans