Unable to deploy PlatformEncryption.settings via MDAPI due to enableEventBusEncryption
Last updated 9 days ago ·Reference W-9541134 ·Reported By 8 users
Deploying PlatformEncryption.settings via MDAPI fails with error if metadata contains <enableEventBusEncryption> with either "true" or "false"
1. Login to an org via SFDX CLI or Workbench.
2. Make sure the connected org has "Event Bus Tenant Secret" created as per steps listed at https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_encryption.htm
3. Try to deploy PlatformEncryption.settings to the org. Package.xml looks similar to below.
4. Deployment will fail with something similar to below error:
Error force-app\main\default\settings\PlatformEncryption.settings-meta.xml enableEventBusEncryption
ERROR running force:source:deploy: Deploy failed.
<?xml version="1.0" encoding="UTF-8"?>
Note: Issue is specific to MDAPI. Updating the enableEventBusEncryption setting from UI works as expected.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.