Describe the bug
When executing sfp orchestrator:build, language bugs that were fixed in sfdx version 7.192.2 still surface, more specifically:
Unable to create package due to
Creation errors:
1) Case.DefaultProcess: Picklist value: New not found
Occurs both locally and on Azure DevOps. This blocks us from using the latest sfpowerscripts container (March, April & June) and we have to keep using the September 22 release.
To Reproduce
- Ensure your DevHub's default language is Norwegian (other non-English DevHubs might work as well)
- Add default record type to Case in project-scratch-def.json:
"objectSettings": {
"case": {
"defaultRecordType": "default"
}
}
-
Set language parameter in project-scratch-def.json:
"language": "en_US",
-
Verify that a new package version is successfully built by executing sfdx package version create
-
Execute sfp orchestrator:build -v myhuborg --branch main --diffcheck --buildnumber 123 -f config/project-scratch-def.json
Expected behavior
A package version is successfully built by sfp orchestrator:build
Actual Behavior
"Old" sfdx error thrown:
Unable to create package due to
Creation errors:
1) Case.DefaultProcess: Picklist value: New not found
Platform Details (please complete the following information):
- OS: Mac OS
- Version [e.g. CLI Version eg: 1.6.6]: 22.5.5
- Salesforce CLI(sfdx cli) Version: 7.209.5
- CI Platform: N/A --> bug occurs locally as well
Additional context
I reported the bug to sfdx (bug 1, bug 2) , and it was fixed in the following packaging PR
Might be that sfp does not utilize the language parameter, or objectSettings values?