Compiler Error AL0305

Note

The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to here. To read about contributing, see Contribute to the Help. Thanks!

The length of the application object identifier '{0}' cannot exceed {1} characters.

Description

The length of an application object identifier cannot exceed 30 characters.

Remarks

This diagnostic will be triggered, for example, if you create a permission set with a name longer than 30 characters, with the Assignable property set to false. For permission sets specifically, the diagnostic will also be triggered, if a permission set with the Assignable property set to true exceeds 20 characters.

permissionset 50111 NameExceeds30CharactersByFivePlusSome
{
    Assignable = false;
    Permissions = 
        table Customer = X;
}
permissionset 50112 NameExceeds20Characters
{
    Assignable = false;
    Permissions = 
        table Customer = X;
}

Get Started with AL
Developing Extensions