Unable to refresh metadata using OAuth connection
After setting up (and reinstalling) a SFDX connection with the latest IntelliJ version, Illuminated Cloud and SFDX CLI, I am unable to refresh metadata as it only gives me the option to Pull Metadata. It still does not work after “Add to metadata subscription“. Using the shortcut to refresh, it will result in the following error
“Pull Complete: Pulled 0/1 components from sfdx_project in 45 s 194 ms with status 1.“
It is a regular sandbox and might be related to https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1847/standard-project-switched-to-scratch-org.
“Use push/pull instead of deploy/retrieve/delete” is unchecked.
Steps to reproduce
- Create project from VCS
- Set up connection to Salesforce environment
- Go to a file and refresh the file using “ctrl + shift + alt + R“
Comments (3)
-
repo owner -
reporter Hi Scott!
Thanks for the quick reply! I solved it by removing the sfdx-project.json and the retrieve works again. Thanks!
-
reporter - changed status to resolved
Deleted the sfdx-project.json and it works again.
- Log in to comment
It's recognizing that project/connection combo as being for a scratch org. That happens if:
sfdx-project.json
file present.manifest/package.xml
file present.My guess is that you don't have a
manifest/package.xml
file for this project to represent its metadata subscription. Is that the case?