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

"sfdx force:source:manifest:create --fromorg" crashes with "The specified metadata type is unsupported: []" #1623

Closed RupertBarrow closed 1 year ago

RupertBarrow commented 2 years ago

Summary

"sfdx force:source:manifest:create --fromorg" crashes with "The specified metadata type is unsupported: []" in same production org as that mentioned in #1492

Steps To Reproduce:

Repository to reproduce: customer's production org

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.

Run sfdx force:source:manifest:create --fromorg=<myusername> -o manifest -n package-snapshot-fromorg.xml --loglevel=trace --json

Expected result

Should produce a manifest file

Actual result

{ "status": 1, "name": "SfError", "message": "The specified metadata type is unsupported: []", "exitCode": 1, "context": "create", "stack": "SfError: The specified metadata type is unsupported: []\n at Function.build (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@salesforce/source-deploy-retrieve/lib/src/collections/componentSetBuilder.js:109:23)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async createManifest (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@salesforce/plugin-source/lib/commands/force/source/manifest/create.js:52:30)\n at async create.run (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@salesforce/plugin-source/lib/commands/force/source/manifest/create.js:32:9)\n at async create._run (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@salesforce/command/lib/sfdxCommand.js:89:40)\n at async Config.runCommand (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@oclif/config/lib/config.js:173:24)\n at async SfdxMain.run (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@oclif/command/lib/main.js:27:9)\n at async SfdxMain._run (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/node_modules/@oclif/command/lib/command.js:43:20)\n at async Object.run (/Users/xxx/.local/share/sfdx/client/7.156.1-6536039/dist/cli.js:162:47)", "warnings": [], "commandName": "create" }

System Information

Additional information

This is the same org as that mentioned in #1492

github-actions[bot] commented 2 years 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.

shetzel commented 2 years ago

I believe this is fixed in the CLI release candidate. Could you update to the RC version and try the command to see if that fixes it for you?

github-actions[bot] commented 2 years ago

This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted.

cristiand391 commented 1 year ago

Closing due to inactivity, but please let us know if this still happens on latest and we'll re-open this.