{"title":"AppSourceCop Error AS0041","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0041/","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-as0041, 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-as0041","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":"Removing table field properties can lead to destructive changes that will break the upgrade of existing installations and dependent extensions.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0041","slug":"appsourcecop-error-as0041","at":0,"chars":1009},{"level":2,"title":"Description","slug":"description","at":108,"chars":159},{"level":2,"title":"Remarks","slug":"remarks","at":267,"chars":310},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":577,"chars":285},{"level":2,"title":"Related information","slug":"related-information","at":862,"chars":147}],"text":"# AppSourceCop Error AS0041\nTable field property changes that cause destructive changes must not be removed\n## Description\nRemoving table field properties can lead to destructive changes that will break the upgrade of existing installations and dependent extensions.\n## Remarks\nThis error occurs when an attempt is made to remove table field properties that have already been published and are considered destructive. Destructive changes can lead to data loss, corruption, or other issues that can break the upgrade process for existing installations and dependent extensions.\n## How to fix this diagnostic?\nTo resolve this error, you need to avoid removing published table field properties that are considered destructive. Here are the steps:\n1. Locate the table field property in your code that is being removed.\n2. Restore the property to its original state.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}