Repository navigation
Description
Summary
I have a simple package.xml file that contains the NavigationMenu metadata type with a wildcard. I get an error when I try to retrieve when the package.xml file specifies any version greater than 53.0. It works with 53.0.
Steps To Reproduce
- Use a package.xml file with the following contents to retrieve. You can change the version to any valid version greater than 53.0 and it will fail.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<name>NavigationMenu</name>
<members>*</members>
</types>
<version>54.0</version>
</Package>
- Get an error:
sf project retrieve start -x ./manifest/package.xml
Retrieving v54.0 metadata from [email protected] using the v60.0 SOAP API
Preparing retrieve request... Failed
Error (1): An unexpected error occurred. Contact Salesforce Customer Support for help.
- Change the package xml file's version to 53.0 and repeat the retrieve command and see that it succeeded.
sf project retrieve start -x ./manifest/package.xml
Retrieving v53.0 metadata from [email protected] using the v60.0 SOAP API
Preparing retrieve request... Succeeded
Retrieved Source
Expected result
The expectation is that it works with versions greater than 53.0.
Actual result
It does not work with versions greater than 53.0.
System Information
On a mac, with bash from the VS Code terminal:
ps $$
PID TT STAT TIME COMMAND
29232 s002 Ss 0:00.26 /bin/bash --init-file /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/me
{
"architecture": "darwin-arm64",
"cliVersion": "@salesforce/cli/2.32.8",
"nodeVersion": "node-v20.11.1",
"osVersion": "Darwin 22.1.0",
"rootPath": "/Users/peter.knolle/.local/share/sf/client/2.32.8-aa146b8",
"shell": "bash",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.0.12 (core)",
"@oclif/plugin-commands 3.2.0 (core)",
"@oclif/plugin-help 6.0.17 (core)",
"@oclif/plugin-not-found 3.0.14 (core)",
"@oclif/plugin-plugins 4.3.2 (core)",
"@oclif/plugin-search 1.0.20 (core)",
"@oclif/plugin-update 4.2.0 (core)",
"@oclif/plugin-version 2.0.14 (core)",
"@oclif/plugin-warn-if-update-available 3.0.13 (core)",
"@oclif/plugin-which 3.1.3 (core)",
"@salesforce/cli 2.32.8 (core)",
"apex 3.0.26 (core)",
"auth 3.3.21 (core)",
"data 3.1.7 (core)",
"deploy-retrieve 3.2.27 (core)",
"info 3.0.28 (core)",
"limits 3.1.13 (core)",
"marketplace 1.0.26 (core)",
"org 3.4.1 (core)",
"packaging 2.1.11 (core)",
"schema 3.1.7 (core)",
"settings 2.0.31 (core)",
"sobject 1.1.17 (core)",
"source 3.1.18 (core)",
"telemetry 3.1.15 (core)",
"templates 56.0.21 (core)",
"trust 3.3.16 (core)",
"user 3.3.1 (core)"
]
}Additional information
Right clicking on the navigationMenus folder in VS code and retrieving from the org works.
I also deleted all local XML files under navigationMenus and attempted to run the command again and it still did not work.
The metadata retrieve command does not work either with versions above 53.0.
sf project retrieve start --metadata NavigationMenu
Retrieving v60.0 metadata from [email protected] using the v60.0 SOAP API
Preparing retrieve request... Failed
Error (1): An unexpected error occurred. Contact Salesforce Customer Support for help.
If I change the sfdx-project.json to 53.0 the --metadata NavigationMenu does work.
Activity
github-actions commentedon Mar 20, 2024
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.
shetzel commentedon Mar 20, 2024
If you run the command appending
--jsonit will include a stack trace that we can use to look up the server side error. Customer support is better equipped to handle this though so I would contact them. This is a server side issue versus a CLI issue.peterTrifecta commentedon Mar 20, 2024
OK. I'll open a support case. Thanks for the insight.
peterTrifecta commentedon Mar 20, 2024
server side issue