forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
491 stars 79 forks source link

Winter '25 Release Breaks Org Shape with PersonAccount Feature Enabled #3057

Open gabordemeter opened 11 hours ago

gabordemeter commented 11 hours ago

Summary

Since the Winter '25 release, our scratch org creation process has encountered issues when using Org Shape with the PersonAccounts feature enabled. We recreated the org shape post-release, as usual, but scratch orgs created from this shape are not properly configuring Person Accounts. While the Person Accounts setting appears enabled, the necessary Person Account objects and record types are not created

Steps To Reproduce

  1. Create a new Org Shape
    sf org create shape --target-org my-prod
  2. Use the following scratch org configuration file:

{
  "orgName": "Shape Scratch",
  "sourceOrg": "00D20000000XXXX",
  "features": [
    "PersonAccounts"
  ]
}

3.Run the following command to create a scratch org:


    sf org create scratch --definition-file config/shape-scratch-def.json --shape --alias shape1 --duration-days 1 --no-track-source --wait 20
  1. The scratch org is created successfully, and the Person Account setting appears enabled in the setup, but the PersonAccount object and its record types are missing.

Expected result

Person Account enabled correctly when we create it from org shape.

Actual result

Person Account feature even though is enabled on UI, the object and recordtype not created as expected.

Additional information

When creating a scratch org without Org Shape from a config file, enabling the PersonAccounts feature, it works as expected, and Person Accounts are fully configured.

System Information

I tested the scratch org creation with your provided docker containers, in multiple versions:

github-actions[bot] commented 11 hours ago

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.

github-actions[bot] commented 11 hours ago

Hello @gabordemeter :wave: It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

Thank you!

pavel-ebury commented 11 hours ago

I'm having the same issue after Winter'25 roll out on Saturday

github-actions[bot] commented 5 hours ago

We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.