Suddenly vscode stopped working with deploying the class to the sandbox I'm using and throws this message "No org configuration found for name INSTANCE NAME"

I tried to create a new project for the sandbox but still get the same error when I'm trying to retrieve all the classes from the org.

sfdx update didn't help.

  • 1
    It sounds like you need to authenticate again? Try sfdx force:auth:web:login -a "some-alias" -r https://test.salesforce.com/ -s (change some-alias to whatever you'd like to call the sandbox). – sfdcfox Mar 31 at 12:45
  • Sometimes it might be a proxy issue. – sanket kumar Mar 31 at 17:15

I had the same problem just now, working with a developer sandbox and indeed authenticating again solved the issue. Thank you

  • authenticating again did not help. – osos9 Apr 2 at 14:03

Deleting folders "tools", "typings" and the file "sfdx-config.json" and then close and open vscode solved the problem.

  • I tried this, then re-authorize and organization using command SFDX: Authorize an Org. It is working. But why? Care to do some explanation? Or it is just a caching issue? – ksugiarto Apr 25 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.