{"title":"AppSourceCop Warning AS0149","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0149/","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/analyzers/appsourcecop-as0149, 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/analyzers/appsourcecop-as0149","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":"Making a method required or removing an obsolete method from a published interface changes the interface's runtime identifier.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Warning AS0149","slug":"appsourcecop-warning-as0149","at":0,"chars":2117},{"level":2,"title":"Description","slug":"description","at":126,"chars":246},{"level":2,"title":"Remarks","slug":"remarks","at":372,"chars":792},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":1164,"chars":656},{"level":2,"title":"Related information","slug":"related-information","at":1820,"chars":297}],"text":"# AppSourceCop Warning AS0149\nAdding or removing a required method on an interface may break dependent extensions at runtime.\n## Description\nMaking a method required or removing an obsolete method from a published interface changes the interface's runtime identifier. Dependent extensions will not break at compile time but may break at runtime until they are recompiled.\n## Remarks\nThis warning is raised when a change to an interface modifies the set of required (non-default) methods, which changes the interface's runtime identifier. Scenarios that trigger this rule include:\n A RequiredPending method becomes required (body removed)\n A required method becomes optional (body added, making it a default method)\n A required method is deleted\nThe runtime identifier determines binary compatibility between the interface and its implementors at deployment. When the identifier changes, dependent extensions continue to compile but may fail at runtime until they're recompiled against the updated interface.\n> NOTE\n> When appsourcecop-as0066 or appsourcecop-as0148 also fires on the same interface, this warning is suppressed because the error is more actionable.\n## How to fix this diagnostic?\nThis warning is informational; it alerts you that a runtime identifier change has occurred. Consider the following:\n If the change is intentional (for example, completing the RequiredPending-to-required transition), the warning is expected. Dependent extensions must be recompiled after updating to the new version of your extension.\n If the change was unintentional, restore the method to its previous state (add back the body, or restore a deleted method).\nTo minimize disruption, follow the recommended two-phase lifecycle: use `[RequiredPending]` before making methods required. See ../devenv-interface-method-lifecycle.\n## Related information\nGetting started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>\n../attributes/devenv-requiredpending-attribute\nAnalyzer rule AS0148<appsourcecop-as0148>\nappsourcecop-as0066\n../devenv-interface-method-lifecycle\nAppSourceCop analyzer<appsourcecop>"}