Matching Rule deployment returns error Change the matching rule status separately from other changes

The error "Change the matching rule status separately from other changes" will be returned when the deployment of the matching rule updating the status apart from making other changes.

In order to prevent this error, you need to make sure that your deployment is either changing the status or changing other properties in the matching rule but not both at the same time (same deployment).

Please note that you can only make changes to a matching rule if this is Inactive. If you try to make changes to an active matching rule you will get the error below:

[MatchingRule Contact.Contact_Rule_B] Before you change a matching rule, you must deactivate it.

In summary, if you are deploying changes in matching rules, make sure the status in Inactive and the status is not being updated in the same deployment that is making the changes.

How did we do?