Skip to content
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

Failure on cloning #1637

Closed
AllenFrank opened this issue Jul 21, 2022 · 3 comments
Closed

Failure on cloning #1637

AllenFrank opened this issue Jul 21, 2022 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@AllenFrank
Copy link

Summary

Failure on cloning of sandbox with sourceSandboxName provided with latest version of sfdx-cli.

Steps To Reproduce:

sfdx force:org:clone -t sandbox sourceSandboxName=$SOURCE_SANDBOX_NAME sandboxName=$SANDBOX_NAME -u $PROD_ORG -w 30

Expected result

new sandbox gets created

Actual result

Following error is thrown:
ERROR running force:org:clone: Sandbox Info ID: id value of incorrect type: 0GR080000004KKbGAM

Workaround

System Information

sfdx version --verbose --json
{
        "cliVersion": "sfdx-cli/7.159.0",
        "architecture": "darwin-arm64",
        "nodeVersion": "node-v18.4.0",
        "pluginVersions": [
                "@oclif/plugin-autocomplete 0.3.0 (core)",
                "@oclif/plugin-commands 1.3.0 (core)",
                "@oclif/plugin-help 3.3.1 (core)",
                "@oclif/plugin-not-found 1.2.6 (core)",
                "@oclif/plugin-plugins 1.10.11 (core)",
                "@oclif/plugin-update 1.5.0 (core)",
                "@oclif/plugin-warn-if-update-available 1.7.3 (core)",
                "@oclif/plugin-which 1.0.4 (core)",
                "@salesforce/sfdx-plugin-lwc-test 1.0.0 (core)",
                "alias 2.1.0 (core)",
                "apex 1.1.0 (core)",
                "auth 2.2.2 (core)",
                "community 2.0.0 (core)",
                "config 1.4.14 (core)",
                "custom-metadata 2.0.0 (core)",
                "data 2.0.4 (core)",
                "generator 2.0.2 (core)",
                "info 2.0.1 (core)",
                "limits 2.0.1 (core)",
                "org 2.0.2 (core)",
                "salesforce-alm 54.6.2 (core)",
                "schema 2.1.1 (core)",
                "sfdx-cli 7.159.0 (core)",
                "signups 1.2.0 (core)",
                "source 2.0.7 (core)",
                "telemetry 2.0.0 (core)",
                "templates 55.0.0 (core)",
                "trust 2.0.1 (core)",
                "user 2.1.0 (core)"
        ],
        "osVersion": "Darwin 21.5.0"
}

Additional information

Weirdly enough the id (0GR080000004KKbGAM) which is returned in the error is the SandboxProcessId, where I'd expect the SandboxInfoId. Also latest rc of sfdx-cli (7.160.0) shows still the same error.

Query SandboxInfo:

sfdx force:data:soql:query --query SELECT Id, SourceId, LicenseType, TemplateId FROM SandboxInfo WHERE SandboxName = 'xxx' --usetoolingapi
Querying Data... done
 ID                 SOURCEID           LICENSETYPE TEMPLATEID 
 ────────────────── ────────────────── ─────────── ────────── 
 0GQ080000004Gy1GAE 0GQ08000000PEyXGAW DEVELOPER   null   

Query SandboxProcess:

sfdx force:data:soql:query --query SELECT Id, ActivatedDate, CopyProgress, SandboxInfoId, SandboxName, SourceId, Status, TemplateId FROM SandboxProcess WHERE Id = '0GR080000004KKbGAM' --usetoolingapi
Querying Data... done
 ID                 ACTIVATEDDATE                COPYPROGRESS SANDBOXINFOID      SANDBOXNAME SOURCEID           STATUS    TEMPLATEID 
 ────────────────── ──────────────────────────── ──────────── ────────────────── ─────────── ────────────────── ───────── ────────── 
 0GR080000004KKbGAM 2021-10-07T08:02:02.000+0000 100          0GQ080000004Gy1GAE xxx         0GQ08000000PEyXGAW Completed null  
@AllenFrank AllenFrank added the investigating We're actively investigating this issue label Jul 21, 2022
@github-actions
Copy link

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.

@mshanemc
Copy link
Contributor

ooh, nice, thanks for taking the time to play with those queries.

@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Jul 21, 2022
@git2gus
Copy link

git2gus bot commented Jul 21, 2022

This issue has been linked to a new work item: W-11468987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

3 participants