-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This directory does not contain a valid Salesforce DX project #1499
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @swapniljn8, I assume that you are running I am able to see similar errors if I run the provide commands before actually creating the scratch org. If you are doing something different, can you please provide the exact commands you are running to set up and replicate the errors? Please also provide what version of |
Closing due to inactivity. Please reopen if you are still seeing issues after the suggestions above. |
I actually found the issue in this, actually when I was initializing the directory from my VS code than I didn't stage the |
Hi we sometimes encounter this as well on our VS Code projects. Using the command line is providing a workaround, the right-click retrieve command works great but deploy doesn't want to. We once solved it by rebooting VS Code but it's not always working. Could you fix the issue ? |
I'm also getting this more and more often in my Visual Studio Code projects. They will work one day, and the next, I can no longer deploy:
|
I have same error, few days ago when I closed and reopen vs code it helped me, but now it doesn't work at all. |
@Bartheleway @savage25 @litolax I would log a new issue here for that team:
@savage25 if that bug happens when using string replacements, I'm pretty sure this PR fixed it: but vscode extensions need to be updated to pass the right path. |
I keep receiving the following error: Metadata API request failed: This directory does not contain a valid Salesforce DX project. |
@marcopfluidogroup that seems to be coming from a different place than the one discussed here ( If you can repro with the Salesforce CLI please create a new bug report here: |
This is also happening to me |
Happening for me, any solution for this bug ? |
@itaishmida @A127324 |
I just updated the Cli it's now working fine |
Summary
After I initialize my salesforce directory to Git, automatically default ORG was removed from the directory
Steps To Reproduce:
System Information
If you are using
sfdx
sfdx force:config:set defaultdevhubusername=some@user.com
Output :
This directory does not contain a valid Salesforce DX project
I also tried
sfdx force:mdapi:convert -r mdapipackage/
Output :
ERROR running force:mdapi:convert: This command is required to run from within an SFDX project.
The text was updated successfully, but these errors were encountered: