Skip to main content

Notifications

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?

  • Verified answer
    YUN ZHU Profile Picture
    83,301 Super User 2025 Season 1 on at
    RE: Codeunit 6010318 PV Job Costing Journal Post

    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

  • Nitin Verma Profile Picture
    21,548 Moderator on at
    RE: Codeunit 6010318 PV Job Costing Journal Post

    Hi,

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,063

#2
YUN ZHU Profile Picture

YUN ZHU 1,002 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 780

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans