{"title":"AppSourceCop Error AS0082","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0082/","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-as0082, 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-as0082","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":"Renaming an enum value is not allowed.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0082","slug":"appsourcecop-error-as0082","at":0,"chars":1085},{"level":2,"title":"Description","slug":"description","at":71,"chars":170},{"level":2,"title":"Remarks","slug":"remarks","at":241,"chars":514},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":755,"chars":183},{"level":2,"title":"Related information","slug":"related-information","at":938,"chars":147}],"text":"# AppSourceCop Error AS0082\nIt is not allowed to rename an enum value.\n## Description\nRenaming an enum value is not allowed. Name changes are not allowed because it might break the upgrade of existing installations and dependent extensions.\n## Remarks\nThis error ensures that the names of enum values remain consistent across different versions of an extension. Renaming an enum value can cause significant issues during the upgrade process, as existing installations and dependent extensions may rely on the original enum value names. Changing these names can lead to data inconsistencies, runtime errors, and unexpected behavior in dependent extensions. Maintaining the original names of enum values ensures compatibility and stability across upgrades.\n## How to fix this diagnostic?\nTo resolve this error, follow these steps:\n1. Locate the enum value in your code that has been renamed.\n2. Restore the original name of the enum value.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}