CumulusCI
CumulusCI copied to clipboard
Update Admin Profile task fails when specifying records types without custom package.xml
Describe the bug
When running the task update_admin_profile and specifying a record type that is not present in the default package.xml, and without specifying a custom package.xml, an error is returned stating:
cumulusci.core.exceptions.TaskOptionsError: Record Type {record_type} not found in retrieved {profile_api_name}.profile
Reproduction steps
- Create a new record type for Case, called "Case" in your org
- Create a task in
cumulusci.yml
update_admin_profile:
options:
api_names:
- Admin
record_types:
- record_type: "Case.Case"
default: true
- Run
cci task run update_admin_profile --org <alias>
Your CumulusCI and Python versions
CumulusCI version: 3.56.0 (/Users/gtandeciarz/.pyenv/versions/cci/bin/cci) Python version: 3.10.4 (/Users/gtandeciarz/.pyenv/versions/cci/bin/python)
Operating System
Mac OS 12.3.1
Windows environment
No response
CumulusCI installation method
pip
Error Gist
No response
Additional information
No response