Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

sfp orchestrator:build - Language bug upon package version creation #1347

@petter-eikeland

Description

@petter-eikeland

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

  1. Ensure your DevHub's default language is Norwegian (other non-English DevHubs might work as well)
  2. Add default record type to Case in project-scratch-def.json:
"objectSettings": {
        "case": {
            "defaultRecordType": "default"
        }
    }

  1. Set language parameter in project-scratch-def.json:
    "language": "en_US",

  2. Verify that a new package version is successfully built by executing sfdx package version create

  3. 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions