Property 'XXXXXXXX' not valid in version 46.0 Deployment error

After the recent Copado's backend release 46 you might receive the deployment errors below.

Error Messages Example:
  • Property 'enableChangeDataCapture' not valid in version 46.0
  • Property 'encrypted' not valid in version 46.0

This happens since Salesforce stopped supporting some values in custom fields, like "encrypted" or "enableChangeDataCapture". 

Recommended Workaround:
Replacement Rules:
  1. Navigate to your Pipeline ( Previously called Deployment Flow).
  2. Click on the Find and Replace Rule Editor button.
  3. Incorporate the following Regex expression to your YML (Click to View YML File).
  4. Save the YML.
  5. Deploy again.

You can also use one of the auxiliary  workarounds:
  • Recommit the affected components, so that value is cleared. Please, bear in mind that there could be work in progress so that, you should review the Pull Request.
  • Edit the XML in the Git repository to remove the unsupported tags.

How did we do?