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 :
Microsoft Dynamics NAV (Archived)

NAV 2013 - Error messages.

(0) ShareShare
ReportReport
Posted on by

Hello,

I am using the function 'message', 'error', etc.

When using them I realized that sometimes the 'error' output is a messagebox, and sometimes it is just an error line on the screen.

On what circumstances may be that difference?

Thanks :)

*This post is locked for comments

I have the same question (0)
  • Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    Can you show us the both scenarios with examples?

  • Russel Profile Picture
    455 on at

    Message: Displays a text string in a message window.

    Error: Displays an error message and ends the execution of C/AL code.

  • S.H. Alexandersen Profile Picture
    136 on at

    Hi Eitan

    Can you come with examples where MESSAGE brings up an error and vicaversa?

    /Søren

  • Verified answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    Hi,

    ERROR function not can be uses on NAS (for example with scheduled codeunit); MESSAGE function yes.

    TESTFIELD("Field, Value") C/AL Command --> returns "by design" an output ERROR Messaget instead of MESSAGE output ...

    look at these links:

    Progress Windows, MESSAGE, ERROR, and CONFIRM Functions

    msdn.microsoft.com/.../dd355271(v=nav.70).aspx

    Error Function

    msdn.microsoft.com/.../dd355305(v=nav.70).aspx

    Message Function

    msdn.microsoft.com/.../dd355325(v=nav.70).aspx

    Error Handling

    msdn.microsoft.com/.../dd301428(v=nav.70).aspx

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans