Skip to content

sourceSandboxName sandbox def file value throws 'no such column on SandboxInfo object' error on sandbox refresh #3262

@stafik

Description

@stafik

Summary

The sourceSandboxName config value (link to the doc) in my sandbox definition file throws an error when I try refreshing an existing sandbox.

Steps To Reproduce

I think I can skip providing a test repository as my issue doesn't relate to Salesforce metadata but SF CLI itself. I hope it's fine?

Prerequisites:

  1. Two existing developer sandboxes: sbx1 and sbx2 created off production org.

Steps to reproduce:

  1. Create a developer-sandbox-def.json file and add the following content:
{
    "sandboxName": "sbx2",
    "sourceSandboxName": "sbx1"
}
  1. Run: sf org refresh sandbox --definition-file developer-sandbox-def.json --target-org prodOrgAlias --wait 600 --no-prompt
  2. See the following error: Error (1): No such column 'SourceSandboxName' on sobject of type SandboxInfo.

Expected result

I'd expect that refreshing the sbx2 sandbox has started successfully. Besides, I'd see in the console output and in the production org | Setup | Sandboxes that sbx1 is the source sandbox.

Actual result

An error is thrown: Error (1): No such column 'SourceSandboxName' on sobject of type SandboxInfo.

Additional information

I fiddled around a bit and replaced sourceSandboxName with sourceId, because such field does exist in the SandboxInfo object. So, effectively, the developer-sandbox-def.json file would look as follows:

{
    "sandboxName": "sbx2",
    "sourceId": "0GQW60000000A2bOAE"
}

When I run a sandbox refresh, it worked without issues.
I guess that maybe a sourceSandboxName -> sourceId mapping didn't work correctly when submitting a new sandbox refresh request in my case?

System Information

I'm using Bash. I run my scenario in a GitLab pipeline.

{
  "architecture": "linux-x[64](https://gitlab.richemont.com/scm_project/ric/client360/tools/-/jobs/5583830#L64)",
  "cliVersion": "@salesforce/cli/2.82.6",
  "nodeVersion": "node-v22.14.0",
  "osVersion": "Linux 6.5.0-1024-aws",
  "rootPath": "/usr/local/lib/nodejs/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.26 (core)",
    "@oclif/plugin-commands 4.1.22 (core)",
    "@oclif/plugin-help 6.2.27 (core)",
    "@oclif/plugin-not-found 3.2.48 (core)",
    "@oclif/plugin-plugins 5.4.36 (core)",
    "@oclif/plugin-search 1.2.23 (core)",
    "@oclif/plugin-update 4.6.35 (core)",
    "@oclif/plugin-version 2.2.27 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.38 (core)",
    "@oclif/plugin-which 3.2.34 (core)",
    "@salesforce/cli 2.82.6 (core)",
    "apex 3.6.11 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.107 (core)",
    "data 4.0.23 (core)",
    "deploy-retrieve 3.21.1 (core)",
    "info 3.4.50 (core)",
    "limits 3.3.51 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.5.5 (core)",
    "packaging 2.12.3 (core)",
    "schema 3.3.57 (core)",
    "settings 2.4.21 (core)",
    "sobject 1.4.53 (core)",
    "telemetry 3.6.36 (core)",
    "templates 56.3.43 (core)",
    "trust 3.7.[75](https://gitlab.richemont.com/scm_project/ric/client360/tools/-/jobs/5583830#L75) (core)",
    "user 3.6.15 (core)",
    "@salesforce/sfdx-scanner 4.11.0 (user) published 13 days ago (Tue Mar 25 2025)",
    "sfdx-git-delta 6.5.1 (user) published 6 days ago (Wed Apr 02 2025)"
  ]
}

Thanks a lot for checking my issue and for your support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a buginvestigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions