AL Development4 min read

BC v29: Two Objects, Same Name, One Translation. That Was the Bug.

How the TranslationsWithNamespaces flag in Business Central v29 fixes XLIFF translation ID collisions when AL object names collide across namespaces.

Target BCBC 2026 Wave 2 (v29+)
Runtime / StackAL Language v14.0+
DeploymentCloud SaaS & On-Premise
Business Central v29 namespace-aware translation IDs cover

Namespaces exist so two AL objects can share a name without colliding. A page called SamplePage in one namespace and a page called SamplePage in another is a valid design. The compiler can tell them apart.

Translation generation did not.

Until Business Central v29, both objects could produce the same XLIFF translation ID. That is not a cosmetic issue. It means a translation file can map two different captions to one unit, and the wrong label can survive into production.

The bug in one example

Imagine two modules in the same extension. Both define a page with the same object name, but in different namespaces.

namespace AL.Sales;
 
page 50100 SamplePage
{
    Caption = 'Sales Page';
}
namespace AL.Inventory;
 
page 50100 SamplePage
{
    Caption = 'Inventory Page';
}

In v28 and earlier, the generated XLIFF could contain two translation units with the same ID:

<trans-unit id="50100-Page-SamplePage-Caption">
  <source>Sales Page</source>
</trans-unit>
<trans-unit id="50100-Page-SamplePage-Caption">
  <source>Inventory Page</source>
</trans-unit>

That is the collision. A translator, a tool, or the runtime can resolve the wrong source string because the identifier is not actually unique.

What changed in v29

Business Central v29 adds a compiler feature flag called TranslationsWithNamespaces. When enabled, the generated translation ID includes the object's namespace, so two objects with the same name receive genuinely independent IDs.

The format is deliberately readable:

AL.Sales - Page SamplePage - Property Caption
AL.Inventory - Page SamplePage - Property Caption

The exact separator and wording are less important than the guarantee: the namespace is part of the identity.

How to enable it

The feature requires AL Application Platform 18.0 or later and the Business Central v29 compiler runtime. Add the flag to the extension's app.json:

{
  "features": [
    "TranslationsWithNamespaces"
  ]
}

It is opt-in. Existing extensions that do not enable the flag keep the old behaviour, which is the right default for compatibility. It also means this is a change you have to test deliberately rather than a switch that improves every project automatically.

The non-ASCII fallback

AL object names and namespaces are not limited to ASCII. If a name contains non-ASCII characters, the compiler falls back to a hashed, ASCII-only identifier so the XLIFF remains valid.

That is a sensible implementation detail, but it changes how much a human can infer from the ID. A readable identifier is useful during debugging; a hashed identifier is still correct, just less friendly. Your translation tooling should not depend on parsing the display form of the ID.

Why this matters in real codebases

The collision is most likely in solutions that use namespaces to organize a large product:

  • ISV applications with multiple modules. Shared object names are normal when each module owns its own domain model.
  • AppSource publishers. A merged translation file from several modules is exactly where duplicate IDs become hard to spot.
  • Large partner extensions. Separate teams may reuse names such as Setup, SetupPage, or SamplePage without realizing the translation pipeline treats them as one object.
  • Localization work. A collision that was invisible in English can surface when a second language is added and a translator works from the generated XLIFF.

This is also a useful reminder that namespaces are not only a compiler convenience. They are part of the identity of the object across the whole toolchain, including translations.

Upgrade checklist

  1. Confirm the AL platform and compiler runtime versions for the target environment.
  2. Add the TranslationsWithNamespaces feature flag in a branch.
  3. Regenerate the XLIFF files and compare the IDs before and after.
  4. Check whether any custom tooling parses the old ID format. Pipeline scripts, glossary tools, and translation memory imports are common offenders.
  5. Reimport the generated files into the translation system and verify that existing translations are still matched correctly.
  6. Test at least one object with a non-ASCII name or namespace.
  7. Run the translation validation and publish a sandbox build before enabling the flag on a production release.

What this does not fix

Namespaces resolve naming collisions inside the compiler and now inside generated translation IDs. They do not automatically fix:

  • Duplicate captions that are intentionally shared across independent objects.
  • Translation quality or missing languages.
  • A translation process that was never integrated into the build.
  • Runtime labels assembled from strings rather than captions.

The feature closes one specific gap between what namespaces promised and what the translation pipeline delivered. That is a small change with a large blast radius if your product depends on generated XLIFF.

The bottom line

If you maintain a modular AL codebase, this is one of those release notes worth testing even if the headline feature list is focused elsewhere. The bug is easy to miss, and the fix is easy to postpone.

Enable the flag in a branch, regenerate the files, compare the IDs, and treat the translation migration as part of the upgrade. The compiler finally agrees with the namespace model. The rest of your toolchain needs to agree too.

For the licensing side of the same release cycle, read the Business Central + Copilot bundle breakdown.

Primary sources

Official references for this topic

Documentation and reference material from the vendor or standards body, kept alongside this article.

Full reference shelf
Wajahat Ali

Written by

Wajahat Ali

Senior Microsoft Dynamics 365 Business Central / NAV Techno-Functional Consultant with 6+ years of ERP delivery experience. Writing about Business Central, AL, integrations, reporting, and the work behind a stable go-live.

Related reading

Keep going on this thread

All articles
Chat on WhatsApp