CumulusCI icon indicating copy to clipboard operation
CumulusCI copied to clipboard

Update Admin Profile task fails when specifying records types without custom package.xml

Open dcinzona opened this issue 3 years ago • 0 comments

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

  1. Create a new record type for Case, called "Case" in your org
  2. Create a task in cumulusci.yml
    update_admin_profile:
        options:
            api_names:
                - Admin
            record_types:
                - record_type: "Case.Case"
                  default: true
  1. 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

dcinzona avatar Apr 19 '22 16:04 dcinzona