Skip to content
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

SFDX Source Pull can't retrieve picklist values #1264

Closed
bdovh opened this issue Nov 2, 2021 · 11 comments
Closed

SFDX Source Pull can't retrieve picklist values #1264

bdovh opened this issue Nov 2, 2021 · 11 comments
Labels
investigating We're actively investigating this issue

Comments

@bdovh
Copy link

bdovh commented Nov 2, 2021

Summary

We can’t retrieve the specified metadata object: PicklistValue. Certain metadata types, like PicklistValue1 are not currently supported by the CLI.
File a bug here: https://github.com/forcedotcom/cli/issues and provide the name of the unsupported metadata type
We can’t retrieve the specified metadata object: PicklistValue. Certain metadata types, like PicklistValue2 are not currently supported by the CLI.
File a bug here: https://github.com/forcedotcom/cli/issues and provide the name of the unsupported metadata type

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

Update picklist values , try to perform sfdx force:source:pull

NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

  1. This is step 1.
  2. This is step 2. All steps should start with '1.'

Expected result

Expect picklist values to be pulled

Actual result

Some error saying picklist values are not supported

System Information

{
"cliVersion": "sfdx-cli/7.123.0",
"architecture": "darwin-x64",
"nodeVersion": "node-v14.18.1",
"pluginVersions": [
"@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)",
"alias 1.1.22 (core)",
"apex 0.3.0 (core)",
"auth 1.7.3 (core)",
"config 1.2.41 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.3 (core)",
"evergreen 0.34.0",
"└─ evergreen-build 0.20.2",
"generator 1.2.0 (core)",
"limits 1.2.2 (core)",
"org 1.8.3 (core)",
"salesforce-alm 53.0.0 (core)",
"schema 1.0.10 (core)",
"sfdx-cli 7.123.0 (core)",
"shane-sfdx-plugins 4.43.0",
"├─ @mshanemc/plugin-streaming 1.1.7",
"└─ @mshanemc/sfdx-sosl 1.1.0",
"source 1.2.4 (core)",
"telemetry 1.2.8 (core)",
"templates 52.4.0 (core)",
"trust 1.0.8 (core)",
"user 1.5.2 (core)"
],
"osVersion": "Darwin 20.5.0"
}

  • If you are using sfdx
    • Run sfdx version --verbose --json
  • If you are using sf
    • Run sf version AND sf plugins --core
  • Paste the output here

Additional information

Feel free to attach a screenshot.

@bdovh bdovh added the investigating We're actively investigating this issue label Nov 2, 2021
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

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.

@WillieRuemmele
Copy link
Member

The PickList metadata is actually stored as a StandardValueSet. Using dreamhouse-lwc I was able to force:source:pull that metadata type

 ➜  sfdx force:source:pull   
=== Pulled Source
STATE  FULL NAME          TYPE              PROJECT PATH
─────  ─────────────────  ────────────────  ─────────────────────────────────────────────────────────────────────────────
Add    test               GlobalValueSet    force-app/main/default/globalValueSets/test.globalValueSet-meta.xml
Add    LeadSource         StandardValueSet  force-app/main/default/standardValueSets/LeadSource.standardValueSet-meta.xml

could you please provide more detailed steps to reproduce it, or you can try using the source:beta:* commands available in 7.125.0

@bdovh
Copy link
Author

bdovh commented Nov 3, 2021

I think the issue reproduces when you create picklist first, then you pull, then you add more picklist values or activate picklist values from the list and pull again. The second pull fails

@WillieRuemmele
Copy link
Member

could you try using the new source:beta:pull command? This bug might already be fixed in there, and if it isn't we'll fix it in there.

@bdovh
Copy link
Author

bdovh commented Nov 4, 2021

could you try using the new source:beta:pull command? This bug might already be fixed in there, and if it isn't we'll fix it in there.

Interesting idea, is that available in my sfdx?

@bdovh
Copy link
Author

bdovh commented Nov 4, 2021

Warning: source:beta:pull is not a sfdx command.

@WillieRuemmele
Copy link
Member

sorry @bdovh - it's available in latest-rc: 7.125.0 it will be available in 7.125.0 as latest later today

@mshanemc mshanemc added the more information required Issue requires more information or a response from the customer label Nov 8, 2021
@no-response
Copy link

no-response bot commented Nov 15, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

@no-response no-response bot closed this as completed Nov 15, 2021
@bdovh
Copy link
Author

bdovh commented Nov 15, 2021

why this issue is closed?

@no-response no-response bot removed the more information required Issue requires more information or a response from the customer label Nov 15, 2021
@no-response no-response bot reopened this Nov 15, 2021
@mshanemc
Copy link
Contributor

mshanemc commented Dec 3, 2021

this works in the new beta:pull.. There was a bug pulling CustomFields that's now solved in 7.130.1 (currently RC)

@mshanemc
Copy link
Contributor

mshanemc commented Apr 1, 2022

closed with new commands GA

@mshanemc mshanemc closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

3 participants