# 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 https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb. To read about contributing, see Contribute to the Help<../../help/contributor-guide#contributing>. 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.
```al
permissionset 50111 NameExceeds30CharactersByFivePlusSome
{
    Assignable = false;
    Permissions =
        table Customer = X;
}
```
```al
permissionset 50112 NameExceeds20Characters
{
    Assignable = false;
    Permissions =
        table Customer = X;
}
```
## Related information
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al305, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/diagnostics/diagnostic-al305/
