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...
Suggested Answer

Backslash does not work for next line in Error() function

(0) ShareShare
ReportReport
Posted on by 175

Hi,

I have read about backslash (\) is used for next line in BCD365. I have tried so many times in error function for going to next line but it not work can anyone help me why its not working ?

My code is :

ERROR('Department must Filled in.. \ Required field :abc )

pastedimage1579674985895v1.png

  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at

    Try the following:

       procedure ShowMessage()

       var

           Text: Text;

           Number: Decimal;

           Text000: Label 'You can use message windows to display text and numbers: \';

           Text001: Label 'The number: ';

           Text002: Label 'The text: ';

       begin

           Text := 'ABCDE';

           Number := 12345.678;

           // The backslash indicates a new line.  

           // You can concatenate strings using the + operator.  

           // You can insert variable values using the % symbol.  

           MESSAGE(Text000 + Text001 + '%1\' + Text002 + '%2\', Number, Text);

       end;

    7506.message.png

  • SirDard Profile Picture
    175 on at

    Hi, Steven

    Thanks for your quick response I have tried your code but no luck .

    trigger OnOpenPage()

       var

       Begin

           ShowMessage();

       end;

       procedure ShowMessage()

       var

           Text: Text;

           Number: Decimal;

           Text000: Label 'You can use message windows to display text and numbers: \';

           Text001: Label 'The number: ';

           Text002: Label 'The text: ';

       begin

           Text := 'ABCDE';

           Number := 12345.678;

           // The backslash indicates a new line.  

           // You can concatenate strings using the + operator.  

           // You can insert variable values using the % symbol.  

           MESSAGE(Text000 + Text001 + '%1\' + Text002 + '%2\', Number, Text);

       end;

    pastedimage1579705976442v1.png

  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    Check your BC Build number version , it's actually bug on BC 15 and has been fixed on build 37455.

    github.com/.../5350

  • SirDard Profile Picture
    175 on at

    Hi, Gusti

    Thanks for your quick response

    Yes, my build number is different . Is there any way to resolve it ?

    pastedimage1579758376362v1.png

  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    You need to install latest CU Update . Download it from here :

    support.microsoft.com/.../update-15-2-for-microsoft-dynamics-365-business-central-2019-release-w

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans