{"title":"Compiler Warning AL0924","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/diagnostics/diagnostic-al924/","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-al924, 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-al924","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":"Interface method '{0}.{1}' will become required.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Compiler Warning AL0924","slug":"compiler-warning-al0924","at":0,"chars":2671},{"level":2,"title":"Description","slug":"description","at":497,"chars":180},{"level":2,"title":"Remarks","slug":"remarks","at":677,"chars":479},{"level":2,"title":"How to fix it","slug":"how-to-fix-it","at":1156,"chars":158},{"level":2,"title":"Example of code that triggers AL0924","slug":"example-of-code-that-triggers-al0924","at":1314,"chars":789},{"level":2,"title":"Example of how to fix it","slug":"example-of-how-to-fix-it","at":2103,"chars":386},{"level":2,"title":"Related information","slug":"related-information","at":2489,"chars":182}],"text":"# Compiler Warning AL0924\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!\nInterface method '{0}.{1}' will become required. {2}Add an implementation now to avoid a future breaking change.\n## Description\nA default interface method is marked with [RequiredPending], indicating it will become mandatory in a future version. Implement it to avoid a breaking change later.\n## Remarks\nWhen an interface method has a default implementation and is marked with the `[RequiredPending]` attribute, the interface author is signaling that this method will become required in a future version. The default implementation currently serves as a fallback, but relying on it will result in a compilation error once the method becomes mandatory.\nThis warning gives implementors a grace period to add their own implementation before the breaking change takes effect.\n## How to fix it\nAdd an explicit implementation of the method in your codeunit. This ensures your code continues to compile when the method becomes required.\n## Example of code that triggers AL0924\nGiven an interface in a dependency module:\n```al\ninterface IPaymentProvider\n{\n    procedure ProcessPayment(amount: Decimal);\n\n    [RequiredPending('ProcessRefund will become required in v27.0', '27.0')]\n    procedure ProcessRefund(amount: Decimal);\n    begin\n        // Default: no refund support\n        Error('Refunds are not supported.');\n    end;\n}\n```\nThe following codeunit triggers AL0924 because it does not implement ProcessRefund:\n```al\ncodeunit 50100 MyPaymentProvider implements IPaymentProvider\n{\n    procedure ProcessPayment(amount: Decimal);\n    begin\n        // Payment logic\n    end;\n\n    // Warning AL0924: IPaymentProvider.ProcessRefund will become required.\n    // The default implementation is used as a fallback for now.\n}\n```\n## Example of how to fix it\nAdd an explicit implementation of the pending-required method.\n```al\ncodeunit 50100 MyPaymentProvider implements IPaymentProvider\n{\n    procedure ProcessPayment(amount: Decimal);\n    begin\n        // Payment logic\n    end;\n\n    procedure ProcessRefund(amount: Decimal);\n    begin\n        // Refund logic - implement before it becomes required\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 Error AL0923<diagnostic-al923>"}