[BUG]: package version create fails with "External string does not exist" for a dependent package's own labels when it ships label translations (2.157.7 works, 2.157.8 fails)
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, node.js
Direção de pesquisa
Start by comparing the packaging and source-deploy-retrieve versions bundled in CLI 2.157.7 and 2.157.8, then trace how package version creation processes custom label translations. The issue reports that removing the <customLabels> entries makes creation succeed, while a single entry reproduces the failure. Confirm the cause and verify that package B's version can be created with its translated labels.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Before You Submit
- I'm using the latest version of Salesforce CLI
- I've searched the existing issues
- I've run
sf doctorto diagnose common issues
Related Issue
No response
Command
sf package version create --package --installation-key-bypass --skip-ancestor-check --code-coverage --wait 120 --json
Org Type
Production
Did this work before?
Yes, this is a regression
Last Working Version
2.157.7.
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. The same source builds with 2.157.7 and fails with 2.157.8, the version salesforce/cli:latest-full has pointed to since 2026-11-04.
Repository to Reproduce
No response
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.
Expected Result
The version is created, as it is with 2.157.7.
Actual Result
With 2.157.8:
Class X: External string does not exist: <a label of package B>
Class Y: Dependent class is invalid and needs recompilation: ... External string does not exist: <label>
All of package B's labels are reported missing, including one that has no German translation.
Error Message
ERROR running package version create: MultipleErrorsError
Multiple errors occurred:
(1) Class TA_Marketing360Setting_Validation: Dependent class is invalid and needs recompilation:
Class AUTO360.Marketing360SettingValidation : External string does not exist: ErrorMarketing360SettingInvalidMidBu
(2) Class MCDataExtensionProvisioner: Dependent class is invalid and needs recompilation:
Class MCDataExtensionProvisioner : External string does not exist: ErrorMarketing360SettingInvalidMidBu
(3) Class TA_Marketing360Settings_ValidationTest: External string does not exist: Marketing360Setting_ParamName_MaxStockItemsEmail
... (about 200 more errors of the same kind, one per class that uses one of the package's own labels)
System Information
{
"architecture": "darwin-arm64",
"cliVersion": "@salesforce/cli/2.157.8",
"nodeVersion": "node-v24.22.1",
"osVersion": "Darwin 27.0.0",
"rootPath": "<npx cache>/node_modules/@salesforce/cli",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 4.0.6 (core)",
"@oclif/plugin-commands 5.0.6 (core)",
"@oclif/plugin-help 7.0.6 (core)",
"@oclif/plugin-not-found 4.0.7 (core)",
"@oclif/plugin-plugins 7.0.13 (core)",
"@oclif/plugin-search 2.0.9 (core)",
"@oclif/plugin-update 5.0.10 (core)",
"@oclif/plugin-version 3.0.7 (core)",
"@oclif/plugin-warn-if-update-available 4.0.5 (core)",
"@oclif/plugin-which 4.0.6 (core)",
"@salesforce/cli 2.157.8 (core)",
"agent 2.2.3 (core)",
"apex 4.4.4 (core)",
"api 2.0.24 (core)",
"auth 6.0.0 (core)",
"code-analyzer 5.16.0 (user) published 76 days ago (Wed Aug 26 2026)",
"data 5.1.24 (core)",
"deploy-retrieve 4.3.2 (core)",
"info 4.0.22 (core)",
"limits 4.0.6 (core)",
"marketplace 2.0.23 (core)",
"org 7.0.10 (core)",
"packaging 3.0.17 (core)",
"schema 4.0.16 (core)",
"settings 3.0.22 (core)",
"sobject 2.0.20 (core)",
"telemetry 4.2.4 (core)",
"templates 57.5.0 (core)",
"trust 4.0.28 (core)",
"user 6.0.6 (core)",
"sfdmu 5.6.4 (user) published 207 days ago (Fri Apr 17 2026) (latest is 5.8.0)"
]
}
Additional Information
- 2.157.7 builds it. 2.157.8 and 2.154.4 fail.
plugin-packagingis 3.0.17 in both 2.157.x versions, but a freshnpx @salesforce/cli@<v>install bundles@salesforce/packaging5.0.27 /source-deploy-retrieve13.12.0 in 2.157.7, and 5.0.26 / 13.11.0 in 2.157.8. - Dropping the
<customLabels>entries from B'sde.translation-meta.xmlmakes 2.154.4 build it too. Keeping a single entry is enough to fail. - The core version B depends on and B's ancestor make no difference.
- Packages in the same project without translation files build fine with 2.157.8.
Screenshots or Log Files
No response
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 575
- Forks
- 80
- Merge médio
- 5h 58min
- PRs com merge (30d)
- 4
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de forcedotcom/cli
-
area:afdx bug owned by another team
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
forcedotcom/cli#3676 · 3 comentários ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapeTalvez já em andamento @konkonrong-lgtm assumiu há 91 dias. Abertaarea:afdx bug investigating owned by another team validated
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
forcedotcom/cli#3625 · 4 comentários ·
-
area:afdx bug owned by another team
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
forcedotcom/cli#3608 · 2 comentários ·
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 53/100
forcedotcom/cli#3685 · 2 comentários · 1 reação ·
-
area:mdapi investigating validated
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
forcedotcom/cli#3684 · 1 comentário ·
Todas as issues de forcedotcom/cli
Issues semelhantes
-
feature javascript
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 61/100
mattgodbolt/jsbeeb#1833 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DiamondLightSource/eiger-correction#2 · 1 comentário ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathAbertamodule: backend type: bug/reported
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
OpenXiangShan/XiangShan#6938 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetTalvez já em andamento @matejk assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pocoproject/poco#5674 ·
Mantenedores costumam responder em até 2 dias