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
- Two 2GP managed packages share one namespace: package A, and package B, which depends on A.
- Package B contains
labels/CustomLabels.labels-meta.xml(about 200 labels) andtranslations/de.translation-meta.xmlwith<customLabels>entries that translate B's own labels. Package A has its own labels and its owndetranslation file. - 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
Nov 30, 2026
created · In Review · 2 reports
Nov 30, 2026
content changed · In Review · 2 reports