Enum value must have non-empty Caption to be selectable in the client (AC0023)

Enum values with a non-empty name are intended to be selectable and visible in the Business Central client. If the Caption is empty, the value is hidden from the UI, leading to unexpected behavior and incomplete user interaction.

Every selectable enum value must have a meaningful Caption so users can see and choose it in the UI.

Example

The following enum value has a name but an empty Caption:

enum 50100 MyEnum
{
    value(1; MyValue)
    {
        Caption = ''; // The enum value 'MyValue' has an empty Caption and will not be shown or be selectable in the client. [AC0023]
    }
}

To fix this, provide a meaningful Caption:

enum 50100 MyEnum
{
    value(1; MyValue)
    {
        Caption = 'My Value';
    }
}

See also

  • AC0022 - Empty Enum value should not have a Caption property specified