forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
494 stars 78 forks source link

Can't pull `RuleLibraryDefinition` with the cli #3099

Open arazkevichprodly opened 2 weeks ago

arazkevichprodly commented 2 weeks ago

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"?>RuleLibraryDefinitionDRORuleLibraryRLM_ConfiguratorRuleLibrary 60.0`
  3. Attempted to pull metadata from an org using sfdx force:mdapi:readmetadata -m "ContractType" -u <org>
  4. Got error message image
github-actions[bot] commented 2 weeks ago

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] commented 2 weeks ago

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:

Thank you!

arazkevichprodly commented 2 weeks ago

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)" ] }

cristiand391 commented 2 weeks ago

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
git2gus[bot] commented 1 week ago

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