Skip to content
Bug Barometer
All issues
In Review

Experience / Develop & Deploy

package version create fails with "External string does not exist" for a dependent package's own labels when it ships label translations

Reported
Nov 26, 2026
Updated
Nov 26, 2026
Fixed
—
Reports
2
Found in
—
Reference
W-24856210

Summary

sf package version create fails for a 2GP managed package that depends on another package in the same namespace and ships translations of its own custom labels. Every Apex class that uses one of the package's own labels fails with External string does not exist.

Workaround

Workaround (temporary):


Remove the customLabels translation entries from the package's .translation-meta.xml files. Keep field and object translations. The customer confirmed that a build with all translations removed passes.



Steps to reproduce

  1. Two 2GP managed packages share one namespace: package A, and package B, which depends on A.
  2. Package B contains labels/CustomLabels.labels-meta.xml (about 200 labels) and translations/de.translation-meta.xml with <customLabels> entries that translate B's own labels. Package A has its own labels and its own de translation file.
  3. Run sf package version create --package B --installation-key-bypass --skip-ancestor-check --wait 120.

Error details

Errors: Class X: External string does not exist: Class Y: Dependent class is invalid and needs recompilation: ... External string does not exist:

Status timeline

  1. Nov 30, 2026

    created · In Review · 2 reports

  2. Nov 30, 2026

    content changed · In Review · 2 reports

Official known-issue pageSuggest a workaround