CumulusCI
CumulusCI copied to clipboard
`update_admin_profile` task fails on namespaced org with Person Accounts enabled
Describe the bug
I am developing a namespaced, unlocked package with a dependency on a package that requires Person Accounts enabled. When using a namespaced org, the update_admin_profile task (which is used in important CCI flows such as dev_org) is failing. This does not occur if I use a non-namespaced org.
Reproduction steps
- Ensure the project has a namespace defined in
cumulusci.yml:
project:
name: MY-PROJECT
package:
name: MY-PROJECT
api_version: "59.0"
namespace: MY_NS
- Add a
dev_namespacedorg tocumulusci.yml:
orgs:
scratch:
dev_namespaced:
config_file: orgs/dev.json
days: 7
namespaced: true
- Ensure the
orgs/dev.jsonhas Person Accounts enabled:
{
"orgName": "MY-PROJECT - Dev Org",
"edition": "Developer",
"features": ["PersonAccounts"],
"settings": {
}
}
- run
cci flow run dev_org --org dev_namespace - Error:
Error: Could not process MDAPI response: Update of Profile Admin: Error on line 644, col 29: In field: recordType - no RecordType named Account.Business_Account found
Your CumulusCI and Python versions
umulusCI version: 3.84.3 Python version: 3.12.2
Operating System
MacOS 14
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
https://gist.github.com/asbestossupply/1ae948bcce20b1e62ab4f1674824ff0e
Additional information
No response
Apologies, this seems like a duplicate of #3544
I did notice something interesting though. After creating the namespaced org there's a discrepency between PersonAccounts and Non-Person Accounts - the former have a namespace applied but the latter do not:
And from what I can tell, the update_profile task is setting the namespace on all types. This would explain why the failure only occurs in namespaced orgs and is on the Business_Account type since it is not namespaced.