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 :
Finance | Project Operations, Human Resources, ...
Answered

BP Rule : not a label ID

(0) ShareShare
ReportReport
Posted on by

Hello all,

How to handle a BP Warning of Label which actually it is define like this :

#define.Account(" Account")

I'm using that in my code to build a string text like this : 

MyTempTable.Description = dictEnum.value2Label(custTableLocal.CustGroup) + #Account;

The BP warning is the normal like this :

Severity Code Description Project File Line Suppression State
Warning  BP Rule: [BPErrorLabelIsText]:BPErrorLabelIsText: ' Account' is not a label ID. FixingBPLabel (CUS) [proj] K:\AosService\PackagesLocalDirectory\bin\XppSource\Proj\AxClass_PRJ_Clas123.xpp 170 

Understand what it implying that I need to have label, but is there a workaround by not add another label for this kind of situation.

Thanks,

I have the same question (0)
  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi WWwong,

    Have you tried to use const instead of macros?

    Note the single quotes.

  • Community Member Profile Picture
    on at

    Hi Blue,

    I'm sorry, what is const and any example how to do it ?

    Thanks,

  • Verified answer
    Blue Wang Profile Picture
    Microsoft Employee on at

    Hi WWwong,

    What I mean by const is constant.

    static const public str Account= 'Account';

  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi WWwong,

    Here is docs page for references docs.microsoft.com/.../x-standards-constants

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi WWwong,

    If it should be considered as constant text, then use single quotes instead of double quotes. The documentation provided by Sergei is telling you the same.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans