cli icon indicating copy to clipboard operation
cli copied to clipboard

Can't pull `RuleLibraryDefinition` with the cli

Open arazkevichprodly opened this issue 1 year ago • 5 comments

I followed these steps and couldn't pull the type RuleLibraryDefinition

  1. created new project with sf project generate -n test
  2. created a new package.xml file with this content: <?xml version="1.0" encoding="UTF-8"?><Package xmlns="http://soap.sforce.com/2006/04/metadata"><types><name>RuleLibraryDefinition</name><members>DRORuleLibrary</members><members>RLM_ConfiguratorRuleLibrary</members></types> <version>60.0</version></Package>
  3. Attempted to pull metadata from an org using sfdx force:mdapi:readmetadata -m "ContractType" -u <org>
  4. Got error message image

arazkevichprodly avatar Nov 06 '24 11:11 arazkevichprodly

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.

github-actions[bot] avatar Nov 06 '24 11:11 github-actions[bot]

Hello @arazkevichprodly :wave: It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

github-actions[bot] avatar Nov 06 '24 11:11 github-actions[bot]

Hello @arazkevichprodly 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.

    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)

    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.

  • Search GitHub for existing related issues.

Thank you!

{ "architecture": "darwin-arm64", "cliVersion": "@salesforce/cli/2.64.8", "nodeVersion": "node-v20.17.0", "osVersion": "Darwin 24.0.0", "rootPath": "/Users/razkevich/.local/share/sf/client/2.64.8-21fd4e6", "shell": "zsh", "pluginVersions": [ "@oclif/plugin-autocomplete 3.2.6 (core)", "@oclif/plugin-commands 4.1.3 (core)", "@oclif/plugin-help 6.2.16 (core)", "@oclif/plugin-not-found 3.2.22 (core)", "@oclif/plugin-plugins 5.4.15 (core)", "@oclif/plugin-search 1.2.12 (core)", "@oclif/plugin-update 4.6.6 (core)", "@oclif/plugin-version 2.2.15 (core)", "@oclif/plugin-warn-if-update-available 3.1.20 (core)", "@oclif/plugin-which 3.2.16 (core)", "@salesforce/cli 2.64.8 (core)", "apex 3.5.4 (core)", "api 1.3.1 (core)", "auth 3.6.70 (core)", "custom-metadata 3.3.35 (user) published 24 days ago (Sun Oct 13 2024) (latest is 3.3.37)", "data 3.8.1 (core)", "deploy-retrieve 3.13.1 (core)", "info 3.4.13 (core)", "limits 3.3.36 (core)", "marketplace 1.3.0 (core)", "org 4.7.2 (core)", "packaging 2.8.12 (core)", "schema 3.3.37 (core)", "settings 2.3.24 (core)", "sobject 1.4.42 (core)", "source 3.5.21 (core)", "telemetry 3.6.17 (core)", "templates 56.3.24 (core)", "trust 3.7.35 (core)", "user 3.5.33 (core)", "sfdx-plugin-source-read 1.3.0 (user) published 0 days ago (Tue Nov 05 2024)" ] }

arazkevichprodly avatar Nov 06 '24 11:11 arazkevichprodly

interesting, I don't see it in the metadata coverage: https://developer.salesforce.com/docs/metadata-coverage/62

just to confirm, do you see the metadata listed when you run this:

sf org list metadata --metadata-type RuleLibraryDefinition

cristiand391 avatar Nov 07 '24 17:11 cristiand391

This issue has been linked to a new work item: W-17203557

git2gus[bot] avatar Nov 11 '24 18:11 git2gus[bot]

interesting, I don't see it in the metadata coverage: https://developer.salesforce.com/docs/metadata-coverage/62

just to confirm, do you see the metadata listed when you run this:

sf org list metadata --metadata-type RuleLibraryDefinition

yes, i do.

arazkevichprodly avatar Jul 15 '25 12:07 arazkevichprodly

@cristiand391 here's the fix i think, please approve: https://github.com/forcedotcom/source-deploy-retrieve/pull/1588

arazkevichprodly avatar Jul 16 '25 14:07 arazkevichprodly

also @cristiand391 could you advise if i need to do anything to get the updated version of the sf cli, and if i need to do anything to trigger its release?

arazkevichprodly avatar Jul 16 '25 14:07 arazkevichprodly

I definitely need that too!

tzioprodly avatar Jul 18 '25 13:07 tzioprodly

@arazkevichprodly @tzioprodly your PR changes are available in the RC: https://github.com/forcedotcom/cli/tree/main/releasenotes/#21002-aug-6-2025-stable-rc

could you please confirm that deploy/retrieve work? if not we can try fix it before it's promoted to stable next Wednesday 6th.

cristiand391 avatar Jul 30 '25 20:07 cristiand391

@arazkevichprodly @tzioprodly your PR changes are available in the RC: https://github.com/forcedotcom/cli/tree/main/releasenotes/#21002-aug-6-2025-stable-rc

could you please confirm that deploy/retrieve work? if not we can try fix it before it's promoted to stable next Wednesday 6th.

Thanks for asking!

sf cli (new nightly build) can now pull the type but unfortunately it can't get it deployed correctly. that's what i get if i deploy it (left is source, right is the destination - it creates the object but with all fields as null)

Image

arazkevichprodly avatar Jul 31 '25 09:07 arazkevichprodly

This issue is fixed in version 2.100.3 (Aug 6, 2025).

jshackell-sfdc avatar Aug 06 '25 18:08 jshackell-sfdc