The Caption of permissionset objects should not exceed the maximum length

Properties
AC0009 Warning Design Code Fix Ignore Obsolete

PermissionSet captions in Business Central are limited to 30 characters. When an English caption fits within that limit, developers often omit the MaxLength subproperty — leaving no constraint on translated captions. A translator working in German or French can then submit a caption that exceeds 30 characters, and the platform truncates it in the Permission Sets list.

Add MaxLength = 30 to the caption so the translation tooling enforces the limit, or set Locked = true if the caption should not be translated.

Example

The following permission set caption has no MaxLength or Locked subproperty, so translations are unconstrained:

permissionset 50100 "My Permission Set"
{
    Caption = 'My Permission Set'; // The Caption of permissionset objects should not exceed the maximum length [AC0009]
}

Set MaxLength to constrain translated captions to 30 characters:

permissionset 50100 "My Permission Set"
{
    Caption = 'My Permission Set', MaxLength = 30;
}

If the caption should not be translated, mark it as locked instead:

permissionset 50100 "My Permission Set"
{
    Caption = 'My Permission Set', Locked = true;
}

When the diagnostic is reported

  • The caption text exceeds 30 characters.
  • The caption has no subproperties (MaxLength or Locked) at all.

Code fix

The code fix adds MaxLength = 30 to the caption property and if a MaxLength value above 30 already exists, it is lowered to 30.

See also