Empty Enum value should not have a Caption property specified (AC0022)
Enum values with an empty name act as sentinel or placeholder values in Business Central. These values are not selectable, not accessible from AL code, and never displayed in the client.
Defining a Caption for an empty enum value is meaningless since the caption will never be shown or used. Removing it reduces clutter and makes the design intent clearer.
Example
The following enum has an empty value with a Caption:
enum 50100 MyEnum
{
value(0; " ")
{
Caption = 'Empty Value'; // The empty enum value defines a Caption, which will never be shown or used by the client. [AC0022]
}
}
To fix this, remove the Caption property:
enum 50100 MyEnum
{
value(0; " ")
{
}
}
See also
- AC0023 - Enum value must have non-empty Caption to be selectable in the client