SFDX Retrieve Source from Org failed to run

SFDX: Retrieve Source from Org failed to run Salesforce

If you are trying to retrieve source from salesforce org but keep getting the error-SFDX: Retrieve Source from Org failed to run. follow the steps and it should resolve the issue.

Create a manifest folder under your project folder and place the package.xml in that.

Click on the package.xml and right click and click on “Retrieve source in Manifest from org”

Note: You can create a package.xml from your other projects or use the below step to start with.

Package.xml (sample)

Update : You no more need to follow the below step. Follow the link to create the file : Generate the package.xml

Create a file with below content and save it to be used in this project. This is just to start with and you can add your own components as needed.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
  <types>
    <name>CustomLabels</name>
    <members>*</members>
  </types>
  <types>
    <name>StaticResource</name>
    <members>*</members>
  </types>
  <types>
    <name>Scontrol</name>
    <members>*</members>
  </types>
  <version>46.0</version>
</Package>

Video

Reference for Visual Studio Code : https://getthekt.com/visual-studio-code-with-salesforce/

Download VS Code : https://code.visualstudio.com/

Comments

2 responses to “SFDX: Retrieve Source from Org failed to run Salesforce”

  1. Thanks for sharing this useful info.

    1. Amit Sahu Avatar
      Amit Sahu

      Thank you 😊

Leave a Reply

Your email address will not be published. Required fields are marked *