Skip to content

set_duplicate_rule_status broken #3951

@RupertBarrow

Description

@RupertBarrow

Describe the bug

cci task run set_duplicate_rule_statuscrashes

Reproduction steps

  1. cci task run set_duplicate_rule_status -o api_names "Standard_Rule_for_Leads_with_Duplicate_Contacts" -o active False --org mysandbox

=> % cci task run set_duplicate_rule_status -o api_names "Standard_Rule_for_Leads_with_Duplicate_Contacts" -o active False --org mysandbox
/Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.13/site-packages/fs/init.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import("pkg_resources").declare_namespace(name) # type: ignore
[02/03/26 10:12:35] Getting org info from Salesforce CLI for rbarrow-sf@xxx.com.dev2
[02/03/26 10:12:39] Beginning task: SetDuplicateRuleStatus
As user: rbarrow-sf@ xxx.com.dev2
In org: 00DAa00000OMp4T

                Extracting existing metadata...                                                                                                                                                       
                Pending                                                                                                                                                                               
                [Pending]: next check in 1 seconds                                                                                                                                                    

[02/03/26 10:12:40] [Done]

Error: Cannot find metadata file /var/folders/25/ssv2gsl15yj9bfbqfhcym2_40000gn/T/tmpk25b9crw/retrieve/duplicateRules/Standard_Rule_for_Leads_with_Duplicate_Contacts.duplicateRule

Your CumulusCI and Python versions

cci version
/Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.13/site-packages/fs/init.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import("pkg_resources").declare_namespace(name) # type: ignore
CumulusCI version: 4.8.1 (/Users/rupert/.local/bin/cci)
Python version: 3.13.11 (/Users/rupert/.local/pipx/venvs/cumulusci/bin/python)

You have the latest version of CumulusCI ⛅

Operating System

MacOS 15.7.3

Windows environment

No response

CumulusCI installation method

None

Error Gist

https://gist.github.com/RupertBarrow/ac70bd4a786bda776d6b1f89ca4c3e68

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions