# Compiler Error AL0919
> 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 Scope attribute is not allowed on interface members.
## Description
Interface methods cannot have specific compilation scope restrictions because interfaces must be implementable by any codeunit regardless of its scope.
## Remarks
Interface methods define a contract that any implementing codeunit must fulfill. Applying a Scope attribute to an interface method would restrict which codeunits can implement the interface, contradicting the purpose of interfaces as general contracts.
## How to fix it
Remove the Scope attribute from the interface method declaration. If you need scope restrictions, apply them on the implementing codeunit's methods instead.
## Example of code that triggers AL0919
```al
interface IMyInterface
{
    [Scope('OnPrem')]
    procedure DoWork();
}
```
## Example of how to fix it
Remove the Scope attribute from the interface method.
```al
interface IMyInterface
{
    procedure DoWork();
}
```
## Related information
Getting started with AL<../devenv-get-started>
Developing extensions<../devenv-dev-overview>
../devenv-interfaces-in-al

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-al919, 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-al919/
