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:retrieve -x manifest/package.xml crashing after upgrade to v7.170 : versions.map is not a function #1730

Closed AltiusRupert closed 2 years ago

AltiusRupert commented 2 years ago

Summary

Command sfdx force:source:retrieve -x manifest/package.xml crashes since I upgraded to sfdx v7.170

Steps To Reproduce:

  1. I log in to my customer's production org
  2. sfdx force:source:retrieve -x manifest/package.xml

Expected result

Should retrieve the Salesforce metadata

Actual result

% sfdx force:source:retrieve -x manifest/package.xml                       
ERROR running force:source:retrieve:  versions.map is not a function
Preparing retrieve request... done

System Information

Additional information

Feel free to attach a screenshot.

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.

cristiand391 commented 2 years ago

Hey @AltiusRupert, I think this is a dup of https://github.com/forcedotcom/cli/issues/1687

If you set the apiVersion with sfdx config:set apiVersion=55.0 or SFDX_API_VERSION=50.0 sfdx ... do you get the same error?

RupertBarrow commented 2 years ago

OK, I've checked the other issue : same problem, your workaound works, I saw the issue was being fixed by Shane. Thanks.

RupertBarrow commented 2 years ago

You may close this issue @cristiand391