Skip to content

SFDX Source Pull can't retrieve picklist values #1264

Closed

Description

@bdovh

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.

Activity

  1. added
    investigating
    on Nov 2, 2021
  2. github-actions commented on Nov 2, 2021

    @github-actions

    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.

  3. WillieRuemmele commented on Nov 2, 2021

    @WillieRuemmele
    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

  4. bdovh commented on Nov 3, 2021

    @bdovh
    Author

    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

  5. WillieRuemmele commented on Nov 3, 2021

    @WillieRuemmele
    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.

  6. bdovh commented on Nov 4, 2021

    @bdovh
    Author

    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?

  7. bdovh commented on Nov 4, 2021

    @bdovh
    Author

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

  8. WillieRuemmele commented on Nov 4, 2021

    @WillieRuemmele
    Member

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

  9. added
    more information required
    on Nov 8, 2021
  10. no-response commented on Nov 15, 2021

    @no-response

    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.

  11. bdovh commented on Nov 15, 2021

    @bdovh
    Author

    why this issue is closed?

  12. removed
    more information required
    on Nov 15, 2021
  13. mshanemc commented on Dec 3, 2021

    @mshanemc
    Contributor

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

  14. mshanemc commented on Apr 1, 2022

    @mshanemc
    Contributor

    closed with new commands GA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigating

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions