{"title":"AppSourceCop Error AS0083","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0083/","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-as0083, 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-as0083","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":"Deleting an enum value is not allowed, unless the enum is marked as obsolete.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0083","slug":"appsourcecop-error-as0083","at":0,"chars":1222},{"level":2,"title":"Description","slug":"description","at":78,"chars":183},{"level":2,"title":"Remarks","slug":"remarks","at":261,"chars":531},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":792,"chars":283},{"level":2,"title":"Related information","slug":"related-information","at":1075,"chars":147}],"text":"# AppSourceCop Error AS0083\nIt is not allowed to delete a value from an enum.\n## Description\nDeleting an enum value is not allowed, unless the enum is marked as obsolete. This restriction prevents dependent extensions from breaking, if they use the enum value.\n## Remarks\nThis error ensures that enum values remain consistent and available across different versions of an extension. Deleting an enum value can cause significant issues for dependent extensions that rely on that value. These extensions may fail to function correctly if the expected enum value is missing, leading to runtime errors and unexpected behavior. By marking an enum value as obsolete instead of deleting it, you provide a transition period during which dependent extensions can adapt to the change without breaking.\n## How to fix this diagnostic?\nTo resolve this error, follow these steps:\n1. Locate the enum value in your code that has been deleted.\n2. Re-add the deleted enum value to the enum definition.\n3. If the enum value should no longer be used, mark it as obsolete instead of deleting it.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}