Can't pull `RuleLibraryDefinition` with the cli
I followed these steps and couldn't pull the type RuleLibraryDefinition
- created new project with
sf project generate -n test - 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> - Attempted to pull metadata from an org using
sfdx force:mdapi:readmetadata -m "ContractType" -u <org> - Got error message
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.
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
rcornightlyversions. (docs)
- Better yet, try the
- Try running the
doctorcommand to diagnose common issues. - Search GitHub for existing related issues.
Thank you!
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 --jsonfor the CLI you're using (sforsfdx).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
rcornightlyversions. (docs)Try running the
doctorcommand 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)" ] }
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
This issue has been linked to a new work item: W-17203557
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.
@cristiand391 here's the fix i think, please approve: https://github.com/forcedotcom/source-deploy-retrieve/pull/1588
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?
I definitely need that too!
@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.
@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)
This issue is fixed in version 2.100.3 (Aug 6, 2025).