What to do in case of starting sfdx: retrieve source from org unknown exception?
I am getting this when I retrieve code from my Org. I was able to authorize an org successfully, but when I go to the Org Browser and try to pull in data of a custom object that is when I get this error SFDX: Retrieve Source from Org failed to run
I saw a post suggesting to reinstall Salesforce CLI. I tried but it didn't work for me.
Please advice, I am behind on my work because of this.
This is what I see on my terminal when I right click and run retrieve from org
In case of starting sfdx: retrieve source from org unknown exception, check to make sure your versions match your org version API version in VisualStudio.
Open - https://.my.salesforce.com/services/wsdl/metadata
The header comment will show your API version:
Salesforce.com Metadata API version ##.0
In Visual Studio check the following file values -
sfdx-project.json and check sourceApiVersion value.
Package.xml check ##.#
You may need to restart VisualStudio after making these changes. Additionally, I've had to go to CLI and revert to a prior version. Most recently I had to revert from 56.5.1 to 55.4.1. To change the CLI version go to Extension VS code >> Search for Salesforce CLI Integration >> near the Uninstall button there is a drop-down >> Install another version.