{"title":"AppSourceCop Error AS0033","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0033/","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-as0033, 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-as0033","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":"Views that have been published must not be deleted, because it will break dependent extensions.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0033","slug":"appsourcecop-error-as0033","at":0,"chars":2823},{"level":2,"title":"Description","slug":"description","at":80,"chars":111},{"level":2,"title":"Remarks","slug":"remarks","at":191,"chars":317},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":508,"chars":442},{"level":2,"title":"Examples of errors for dependent extensions","slug":"examples-of-errors-for-dependent-extensions","at":950,"chars":1726},{"level":3,"title":"Example 1 - Extensions modify this view","slug":"example-1---extensions-modify-this-view","at":1300,"chars":445},{"level":3,"title":"Example 2 - Extensions referencing this view as an anchor for a change","slug":"example-2---extensions-referencing-this-view-as-an-anchor-for-a-change","at":1745,"chars":530},{"level":3,"title":"Example 3 - Extensions moving this view","slug":"example-3---extensions-moving-this-view","at":2275,"chars":401},{"level":2,"title":"Related information","slug":"related-information","at":2676,"chars":147}],"text":"# AppSourceCop Error AS0033\nViews that have been published must not be deleted.\n## Description\nViews that have been published must not be deleted, because it will break dependent extensions.\n## Remarks\nRemoving a view which has been published is not allowed because it will break dependent extensions which are referencing or modifying it.\n> NOTE\n> Renaming a view will also trigger this error. AppSourceCop will consider the renamed view as a new view, unrelated to the one defined in the previous version.\n## How to fix this diagnostic?\nIf the view was removed, revert the change by adding back the view and mark it as ../properties/devenv-obsoletestate-property.\nIf the view was renamed to change its display string in the web client, consider using the ../properties/devenv-caption-property property instead.\nIf the view was renamed to comply with naming rules such as appsourcecop-as0011, consider obsoleting the view and introducing a new one.\n## Examples of errors for dependent extensions\nThe following examples show some of the compilation errors that will be reported on dependent extensions if a view is removed from one version to another.\nVersion 1.0 of the extension defines a list page named MyListPage that contains a view named MyView. Version 2.0 does not define this view anymore.\n### Example 1 - Extensions modify this view\nIf a dependent extension modifies this view in a page extension or customization, when compiling against version 2.0, this will lead to a compilation error similar to `The view 'MyView' is not found in the target 'MyListPage' (AL0533)`.\n```al\npageextension 50100 SomePageExtension extends MyListPage\n{\n    views\n    {\n        modify(MyView)\n        {\n            Visible = true;\n        }\n    }\n}\n```\n### Example 2 - Extensions referencing this view as an anchor for a change\nIf a dependent extension uses this view as an anchor for a change in a page extension or customization, when compiling against version 2.0, this will lead to a compilation error similar to `The view 'MyView' is not found in the target 'MyListPage' (AL0533)`.\n```al\npageextension 50100 SomePageExtension extends MyListPage\n{\n    views\n    {\n        addafter(MyView)\n        {\n            view(SomeNewView)\n            {\n            }\n        }\n    }\n}\n```\n### Example 3 - Extensions moving this view\nIf a dependent extension is moving this view in a page extension or customization, when compiling against version 2.0, this will lead to a compilation error similar to `The view 'MyView' is not found in the target 'MyListPage' (AL0533)`.\n```al\npageextension 50100 SomePageExtension extends MyListPage\n{\n    views\n    {\n        movefirst(MyView)\n    }\n}\n```\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}