Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More

sf org create sandbox fails with "No such column 'PostCopyConfig' on entity 'SandboxInfo'" in Salesforce CLI v2.138.6+

Publish Date: Jun 26, 2026
Description

Salesforce CLI v2.138.6 (plugin-org v5.11.6, released June 3, 2026) introduced an internal Tooling API query against SandboxInfo that references the PostCopyConfig field. This field is part of a new platform feature being delivered in Build 264 and has not yet been deployed to all Salesforce instances. Orgs hosted on instances that have not yet received Build 264 do not have this field, causing the CLI's internal query to fail.

Note: PostCopyConfig is not a user-configurable option  it is injected by the CLI internally. This issue occurs even when the sandbox definition file does not contain a postCopyConfig key

Error Message:
ActivationUserGroupId,Features,PostCopyConfig FROM SandboxInfo

ERROR at Row:1:Column:215 No such column 'PostCopyConfig' on entity 'SandboxInfo'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

Resolution

Downgrade the Salesforce CLI to a version prior to v2.138.6. To update to a specific CLI version, run:
sf update --version <previous-version>
(or)
Or install a previous stable version from the Salesforce CLI Releases page.

Knowledge Article Number

005387707

 
Loading
Salesforce Help | Article