-
Notifications
You must be signed in to change notification settings - Fork 407
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
Error deploying or retrieving source: #5850
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 @YavuzCemal 👋 It looks like you didn't provide all the required basic info in your issue. If you haven't already, please provide the following info: Here's an example of a set of required info that will pass the validation: A few more things to check:
Thank you! |
Salesforce Extension Version in VS Code: 61.12.0 |
Hello @YavuzCemal 👋 It looks like you're using an outdated version of Salesforce CLI. Moving to After you move to the latest version of |
moved to new version but problem persist |
Hi @YavuzCemal, sorry, according to your previous comment where you provided the versions, you mentioned that the most recent version where deploy/retrieve to/from manifest was working is also 61.12.0, so same as the current version you have where it's not working, is that right? |
Yes it is. Also single file deployment and retrieve works properly. |
Then do you recall you made any changes in your project/org? I'm asking because the extensions version is the same so nothing changed there😅 |
I didn't make any changes actually. Also since I work for multiple orgs that are in test.salesforce.com, this function going down for multiple may direct somewhere else. I recently I had another error about package.xml and changed it to be defined as xml file but after that it was working. I don't know whether this is a relevant information. The attempt directly result with following error, whether only one or multiple metadata statements: Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your "packageDirectories" value, or deploy or retrieve a different file or directory. For details about sfdx-project.json, see: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm This is mationed error file: sfdx-project.json Maybe I should just reinstall vscode |
Hi @CristiCanizales is this relevant? [{ PS: this was irrelevant to this topic but it is solved meanwhile in here 5840 |
Thank you for the details. If you try through the CLI, does it work? The command would be |
Oh, you need to replace |
Okay wrote tried again to right click and retrieve from file and still has the error |
Hi @YavuzCemal , thank you for filing this issue. Can you please create a small video showing the following details so we can better understand what is going on -
|
Hi @diyer, |
Thank you for providing additional information @YavuzCemal . We will continue to look into this and update you soon. |
Hi @YavuzCemal, in the screenshot you provided looks like the request is pending for the cli command. Can you send a screenshot of the successful retrieval using cli? |
Hi @CristiCanizales, here it is. |
Could you also run Developer: Show Running Extensions from command palette and share the screenshot of all extensions running? |
So the CLI Integration extension shows unresponsive. Could you go to .vscode/extensions global folder and delete all extensions starting with salesforcedx, quit and restart vscode and reinstall extensions and see if the issue persists? |
Can you try running command "SFDX: Create Project", name it "test" (or something with no spaces), connect to the same org and copy and paste that same package.xml from the other project and see if that works? |
Hello @YavuzCemal, thank you for your patience and trying every suggestion. Can you open your manifest and send me a screenshot of the whole VSCode window including your bottom bar? I want to verify the items there. Like this |
Right! I think we may have bingo (? Could you click in the bottom bar to the very right where it says XML and change it to |
Bingo!
Thank you @CristiCanizales |
Great find @CristiCanizales ! This saved me hours of frustration.
|
Similar problem to this issue no: 5433
Summary
package.xml Retrieve process suddenly stopped working for different orgs
Steps To Reproduce:
Create new project with manifest
Open package.xml in manifest folder.
Right click -> Retrieve Source from org
Expected result
The command should execute successfully.
Actual result
Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your "packageDirectories" value, or deploy or retrieve a different file or directory. For details about sfdx-project.json, see: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm
Additional Information
sfdx-project.json file:
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"name": "my QA 3",
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com/",
"sourceApiVersion": "61.0"
}
Salesforce Extension Version in VS Code: 61.12.0
sf CLI Version: @salesforce/cli/1.86.7-legacy.0 win32-x64 node-v18.15.0
OS and version: Windows 10 Enterprise
VS Code version: 1.93.1
The text was updated successfully, but these errors were encountered: