bcquality/microsoft/knowledge/breaking-changes/namespace-is-part-of-published-object-identity.md
Jesper Schulz-Wedde b6da405376 Improve partner onboarding and documentation navigation
Lead with a complete plugin quick start and add task-oriented usage, troubleshooting, customization, and contribution guides. Preserve the broader plugin framing, correct conflicting contract guidance, support Agents folder reviews, and align repository validation. Convert existing sample references to clickable links without changing knowledge rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-09 17:25:29 +02:00

1.5 KiB

bc-version domain keywords technologies countries application-area
23..
breaking-changes
namespace
published-object
dependency
breaking-change
as0007
compile-time-identity
al
w1
all

Treat a published namespace as part of object identity

Description

AL resolves an object by namespace and name. Once an app ships and dependent extensions compile against that identity, changing the namespace breaks their references even when the object name and ID stay unchanged. AppSourceCop AS0007 rejects changing the namespace of published objects; namespaces are therefore not a cosmetic folder-like label that can be reorganized after release.

Best Practice

Choose a globally meaningful namespace before first publication and keep it stable. Add new functional areas beneath that structure without moving existing published objects. If an identity must move, use the platform's supported move/obsoletion lifecycle rather than a source-only namespace rename.

See sample: namespace-is-part-of-published-object-identity.good.al.

Anti Pattern

Changing namespace Contoso.Rentals; to namespace Contoso.RentalManagement; as a cleanup while leaving the object name and ID untouched. Every dependent using directive and qualified reference targets the old identity and stops compiling.

See sample: namespace-is-part-of-published-object-identity.bad.al.