{"title":"Compiler Error AL0923","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/diagnostics/diagnostic-al923/","by":"JOP-AL","license":"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-al923, 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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al923","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"The attribute '[RequiredPending]' can only be applied to interface methods with a default implementation.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Compiler Error AL0923","slug":"compiler-error-al0923","at":0,"chars":2203},{"level":2,"title":"Description","slug":"description","at":488,"chars":170},{"level":2,"title":"Remarks","slug":"remarks","at":658,"chars":328},{"level":2,"title":"How to fix it","slug":"how-to-fix-it","at":986,"chars":130},{"level":2,"title":"Example of code that triggers AL0923","slug":"example-of-code-that-triggers-al0923","at":1116,"chars":313},{"level":2,"title":"Example of how to fix it","slug":"example-of-how-to-fix-it","at":1429,"chars":590},{"level":2,"title":"Related information","slug":"related-information","at":2019,"chars":184}],"text":"# Compiler Error AL0923\n> NOTE\n> 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!\nThe attribute '[RequiredPending]' can only be applied to interface methods with a default implementation.\n## Description\nThe [RequiredPending] attribute is only valid on interface methods that have a body (default implementation). Methods without a body are already required.\n## Remarks\nThe `[RequiredPending]` attribute signals that an optional interface method (one with a default implementation) will become required in a future version. Applying it to a method without a body is meaningless because methods without a default implementation are already required -- all implementors must provide them.\n## How to fix it\nEither add a default implementation (body) to the interface method, or remove the `[RequiredPending]` attribute.\n## Example of code that triggers AL0923\n```al\ninterface INotification\n{\n    // Error: RequiredPending on a method without a body.\n    // This method is already required because it has no default implementation.\n    [RequiredPending('This will become required', '27.0')]\n    procedure Notify(message: Text);\n}\n```\n## Example of how to fix it\nIf the method should be required, simply remove the `[RequiredPending]` attribute. It is already required because it has no body.\n```al\ninterface INotification\n{\n    procedure Notify(message: Text);\n}\n```\nIf you intend to make the method optional now and required later, add a default implementation body.\n```al\ninterface INotification\n{\n    [RequiredPending('Implementors must provide Notify by v27.0', '27.0')]\n    procedure Notify(message: Text);\n    begin\n        // Default no-op implementation.\n        // Implementors should override this.\n    end;\n}\n```\n## Related information\nGetting started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>\n../devenv-interfaces-in-al\nCompiler Warning AL0924<diagnostic-al924>"}