Unable to refresh metadata using OAuth connection

Issue #1854 resolved
Richard Wang created an issue

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)

  1. Scott Wells repo owner

    It's recognizing that project/connection combo as being for a scratch org. That happens if:

    1. There's an sfdx-project.json file present.
    2. There no manifest/package.xml file present.
    3. The associated connection is for a scratch org.

    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?

  2. Richard Wang reporter

    Hi Scott!

    Thanks for the quick reply! I solved it by removing the sfdx-project.json and the retrieve works again. Thanks!

  3. Log in to comment