-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.186.2] Language bug upon package version creation when installing dependencies with validation skipped #1921
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-12513253 |
Hello, does anybody know of any known workaround to address this problem? |
@JorisOldeBijvank If I remember correctly I do not get this error when the latest package dependency was created with validation. We have just downgraded our CLI versions to below 7.186 until it is resolved I have an ongoing case with Salesforce Support regarding this, they have been trying to recreate the bug for some time |
@petter-eikeland Thank you for your comment. Unfortunately, downgrading our CLI version causes problems with the new naming conventions of Global Value Sets. I have to keep my fingers crossed until it is resolved, and in the meantime, I will try to deploy the source directly to the org without a package and see if that'll work. |
@JorisOldeBijvank They were able to replicate the issue just now: |
@JorisOldeBijvank Seems like the newest RC contains a fix, have not tested it yet |
Ah, great. Thanks for letting me know! |
Seems like this is fixed with the newest RC! Feel free to close |
Summary
When trying to create a new package version, if the dependent package was created without validation, then language errors might occur. Might be related to previous issue #1883
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
Ensure that you are connected to a DevHub with a default language != English (or language on user is != English, not sure how default language is set in build orgs). In my case this is Norwegian. Also ensure that the language option in project-scratch-def.json is set to en_US:
"language": "en_US",
Create new folder archive and add a custom object Archive__c with the Vowel parameter in the object file:
<startsWith>Vowel</startsWith>
Create a new package using
sfdx package create -n archive -r archive -t Unlocked -v myhuborg
Successfully create new version of archive package using
sfdx package version create -p archive -w 10 -x -v myhuborg -f config/project-scratch-def.json --skip-validation
NB! This is created without validation
Create second folder archive-field. Add Archive field "Test_Field__c"
Create second package using
sfdx package create -n archive-field -r archive-field -t Unlocked -v myhuborg
Add archive package as dependency to archive-field package
Create version of archive-field package using
sfdx package version create -p archive-field -w 15 -x -v myhuborg -f config/project-scratch-def.json
Expected result
A new package version of archive-field is successfully created
Actual result
Error (1): Multiple errors occurred:
(1) Det oppstod en feil ved forsøk på å installere en pakkeavhengighet. ID 04t090000003oVs: Archive__c: Cannot specify a startsWith attribute for this language
System Information
Additional information
This error does not occur when downgrading sfdx version to 7.179.0. However, after creating a new package version on 7.179.0 with validation skipped, installing 7.186.2 and creating a new version of archive-fields --> the bug occurs again
If the archive package is created with validation, then the bug does not occur
The text was updated successfully, but these errors were encountered: