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

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

Closed
petter-eikeland opened this issue Jul 10, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@petter-eikeland
Copy link

petter-eikeland commented Jul 10, 2023

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?

@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Jul 10, 2023
@azlam-abdulsalam azlam-abdulsalam added bug Something isn't working and removed analysis To be decided on how to solution/fix labels Jul 12, 2023
@azlam-abdulsalam
Copy link
Contributor

Will be fixed as part of July23 when core libs are updated? Are you blocked?

@azlam-abdulsalam azlam-abdulsalam added this to the July 23 milestone Jul 12, 2023
@petter-eikeland
Copy link
Author

Not a major blocker, only blocker for using new functionality (new picklist patch, dependency expand, etc.)

We can wait until July 23 ✌️

@azlam-abdulsalam
Copy link
Contributor

@petter-eikeland is it part of #1253 as well?

@petter-eikeland
Copy link
Author

Good question. I don't think the issue is part of it. However, we can close that issue. I didn't find the use case for it after all. It was solved by the language param in project-scratch-json

@azlam-abdulsalam azlam-abdulsalam removed the bug Something isn't working label Aug 8, 2023
@azlam-abdulsalam azlam-abdulsalam added the bug Something isn't working label Aug 8, 2023
@azlam-abdulsalam
Copy link
Contributor

This is fixed in July 23,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants