{"title":"AppSourceCop Warning AS0040","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0040/","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-as0040, 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-as0040","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":"Destructive page properties that have been published must not be removed.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Warning AS0040","slug":"appsourcecop-warning-as0040","at":0,"chars":915},{"level":2,"title":"Description","slug":"description","at":101,"chars":89},{"level":2,"title":"Remarks","slug":"remarks","at":190,"chars":303},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":493,"chars":271},{"level":2,"title":"Related information","slug":"related-information","at":764,"chars":151}],"text":"# AppSourceCop Warning AS0040\nRemoving page properties that cause destructive changes is not allowed\n## Description\nDestructive page properties that have been published must not be removed.\n## Remarks\nThis error occurs when an attempt is made to remove page 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 page properties that are considered destructive. Here are the steps:\n1. Locate the page property in your code that is being removed.\n2. Restore the property to its original state.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}