CumulusCI
CumulusCI copied to clipboard
Task `update_admin_profile` errors when the org has person accounts and a namespace
Describe the bug
When creating a new dev org using cci flow run dev_org --org dev I get the following error when the update_admin_profile task is ran as part of the config_dev flow
I see this might be an SFDX problem since it has been a problem for other people who are using a namespace and person accounts in a scratch org: https://salesforce.stackexchange.com/questions/206310/sfdx-personaccount-error-entity-of-type-recordtype-named-account-business-a
Reproduction steps
- update your
orgs/dev.jsonorg definition to have thePersonAccountsfeature in thefeaturesarray - add
namespaced: trueunderorgs/scratch/devin your cumulusci file - run
cci flow run dev_org --org dev
Your CumulusCI and Python versions
CumulusCI version: 3.73.0 Python version: 3.11.0
Operating System
macOS 13.2
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
https://gist.github.com/joeythomaschaske/34f0add83ccb9f41f1b88822881d5530
Additional information
No response
I don't think it's exactly the same as the linked issue, but it's probably related.
The easy workaround is just to turn that task off (I'm not a big fan of what it does anyway). You'd do that by doing
flows:
config_dev:
steps:
2:
task: None
I think there is probably a way to configure the task with its own Record Type settings or a custom package.xml manifest to make the Metadata API happy, but I'm not sure exactly what that looks like. I will get a WI on our backlog but I can't make any promises about delivering a behavior change.
Tracking as W-12589033