Recently, my colleagues started receiving error an error whenever attempting to retrieve or diff components, for production or any of our sandboxes.

Error when attempting to retrieve or diff metadata]

I have recently joined the team, and I did not receive the error upon a fresh install. However, I had not yet connected my SFDX project to Github. Attempts to retrieve from orgs fail from any branch, including older branches that had no such issues mere weeks ago.

We have updated the CLI, downgraded the CLI, re-authorized the orgs, and reinstalled VS Code. Online solutions don't refer to this exact error message, other than this unresolved Salesforce issue (the component doesn't seem to matter).

We are using the default sfdx project file structure, with this sfdx-project.json:

    "packageDirectories": [
            "path": "force-app",
            "default": true
    "namespace": "",
    "sfdcLoginUrl": "https://login.salesforce.com",
    "sourceApiVersion": "55.0"
  • how are you retrieving Metadata components? by using package.xml or org browser?
    – sdandamud1
    Commented Nov 4, 2022 at 17:26
  • @sdandamud1 The error occurs via both methods. Commented Nov 4, 2022 at 19:50


You must log in to answer this question.

Browse other questions tagged .