{"title":"AppSourceCop Error AS0068","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0068/","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-as0068, 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-as0068","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":"Changing the target of a table extension that has been published is not allowed, because this might break the upgrade of existing installations and dependent extensions.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0068","slug":"appsourcecop-error-as0068","at":0,"chars":1070},{"level":2,"title":"Description","slug":"description","at":80,"chars":185},{"level":2,"title":"Remarks","slug":"remarks","at":265,"chars":373},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":638,"chars":285},{"level":2,"title":"Related information","slug":"related-information","at":923,"chars":147}],"text":"# AppSourceCop Error AS0068\nChanging a table extension's target is not allowed.\n## Description\nChanging the target of a table extension that has been published is not allowed, because this might break the upgrade of existing installations and dependent extensions.\n## Remarks\nThis error occurs when an attempt is made to change the target table of a table extension that has already been published. The target table of a table extension defines, which table the extension is augmenting. Changing this target can disrupt the upgrade process for existing installations and break dependent extensions that rely on the original target table.\n## How to fix this diagnostic?\nTo resolve this error, you need to avoid changing the target table of a published table extension. Here are the steps:\n1. Locate the table extension in your code where the target table has been changed.\n2. Restore the target table to its original value.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}