-
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
force:source:pull fails because of custom labels #1317
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. |
We're replacing all of that code for pull with what's in the new source:beta Can you try using that to see if the error is the same? |
source:beta:pull retrieved such custom labels without errors. However it's not something which is ready to be used in production workflows, is it correct? |
Oh, nice catch on Did you change the label on the server in between, then pull again, and you're saying it should say |
In the previous example I executed the command sequentially, without making changes in the custom labels in my scratch I made one more test when I changed custom labels between the source:pull executions and the information in the console for the second execution still says |
This issue has been linked to a new work item: W-10322335 |
Summary
sfdx force:source:pull works incorrectly because of custom labels, fullName of whose can be treated as booleans
Prerequisites
Steps To Reproduce
Expected result
Pull should retrieve metadata
Actual result
Exception occurs "ERROR running force:source:pull: fullName.trim is not a function"
System Information
CLI Version :
sfdx-cli/7.129.0
Architecture:
darwin-x64
Node Version :
node-v16.13.0
Plugin Version:
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.3 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.1 (core)
@oclif/plugin-update 1.5.0 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
@salesforce/sfdx-scanner 2.12.0
alias 1.1.22 (core)
apex 0.3.0 (core)
auth 1.7.6 (core)
config 1.2.48 (core)
custom-metadata 1.0.12 (core)
data 0.6.5 (core)
generator 1.2.1 (core)
limits 1.2.3 (core)
org 1.9.2 (core)
salesforce-alm 53.4.5 (core)
schema 1.0.10 (core)
sfdx-cli 7.129.0 (core)
source 1.5.3 (core)
telemetry 1.3.0 (core)
templates 52.6.0 (core)
trust 1.0.10 (core)
user 1.5.3 (core)
OS and Version:
Darwin 20.6.0
Additional information
Exception:
It seems like the issue is in the nonDecomposedElementsIndex.json file
Other fullNames of custom labels has string type, but the custom label with fullName "true" becomes boolean in that file
The custom label with fullName equals to "false" isn't reflected in that file at all
The text was updated successfully, but these errors were encountered: