function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patr1k03Patr1k03 

ERROR running force:org:clone: sObject type 'SandboxInfo' is not supported.

Hello Everyone,

I am trying to clone sandbox using below CLI command but getting an error stating "sObject type 'SandboxInfo' is not supported".

CLI Command:
sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u sourceSandbox -a mysandbox -s -w 30

 
Best Answer chosen by Patr1k03
SwethaSwetha (Salesforce Developers) 
HI Patr1k03 ,
Are you trying to clone from a sandbox org? If so, note that you can clone only from a PROD instance from where different sandboxes are spun

If it is a production org, you would not be seeing this error.

Related:https://salesforce.stackexchange.com/questions/154020/object-type-sandboxinfo-is-not-supported

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Patr1k03 ,
Are you trying to clone from a sandbox org? If so, note that you can clone only from a PROD instance from where different sandboxes are spun

If it is a production org, you would not be seeing this error.

Related:https://salesforce.stackexchange.com/questions/154020/object-type-sandboxinfo-is-not-supported

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.Thank you
This was selected as the best answer
Malika Pathak 9Malika Pathak 9
Hi Patr1k03,

It is applicable only for PROD instance from where different sandboxes are spun.Hence it won't return any result for sandbox.

For More info:
https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_sandboxinfo.htm
https://salesforce.stackexchange.com/questions/154020/object-type-sandboxinfo-is-not-supported

Kindly mark this as best answer, If you find this answer helpful to help others.