Skip to main content

Hi all, 

 

I have one sandbox, in which "Enable Source Tracking in this Sandbox" in Sandbox Setting is disabled. 

 

However when I try to deploy or retrieve code from source org. It throws below error. 

VS Code Unable to Retrieve / Deploy components

 

Till yesterday it was working properly. In this client org, they are using Dev Ops for more than a year period. 

 

Anyone have any idea for the issue 

 

 

 

답변 15개
  1. 2025년 8월 28일 오전 7:45

    @Harsh Patel: What's Happening?

    When you retrieve or deploy using VS Code (with Salesforce CLI) and your project is set up as a scratch org style (source-tracked) project (i.e., with sfdx-project.json and sourcePath structure), the CLI expects source tracking to be enabled in the target org.

    However, sandboxes (even with Salesforce DX enabled) do not support source tracking unless it's explicitly enabled, and even then, it behaves differently from scratch orgs. 

     

     You're referring to the "Experimental Deploy / Retrieve" setting in VS Code's Salesforce Extension Pack

      

    Here's how it works:  

    The "Experimental Deploy / Retrieve" feature in VS Code uses the new Library-based deploy/retrieve mechanism, which is source tracking–aware.

    So, when this is turned ON, the Salesforce CLI (via VS Code) tries to use source-tracked deploy/retrieve, even for orgs that don't support it (like most sandboxes without source tracking enabled). This leads to the error: "This org does not have source tracking."  

     

    Solution: Turn OFF Experimental Deploy / Retrieve

    To fix it:

    Steps:

    1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
    2. Type: Preferences: Open Settings (UI)
    3. In the search bar, type: Experimental Deploy Retrieve
    4. Uncheck or turn off:
      • Salesforce > Deploy Retrieve: Experimental Deploy Retrieve
    5. Restart VS Code (just to be sure).
0/9000