mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
3.5 KiB
3.5 KiB
CDC Deploy Troubleshooting
Errors observed during real org dry-runs while authoring this skill, with the metadata-side fix.
"Unable to find the specified channel"
The <eventChannel> value doesn't match a channel known to the org.
- For the default channel, the value must be exactly
ChangeEvents. NOTdata/ChangeEvents, NOT/data/ChangeEvents, NOTdata/ChangeEvent. - For a custom channel, the value must match the channel's DeveloperName including the
__chnsuffix — e.g.PartnerSync__chn. - If the custom channel is in the same deploy, ensure it's in the same package directory so MDAPI orders the deploy correctly.
"...invalid event in the 'selectedEntity' field"
<selectedEntity> must be the ChangeEvent entity, not the source object.
| Source | Wrong | Right |
|---|---|---|
Account |
Account |
AccountChangeEvent |
Lead |
Lead |
LeadChangeEvent |
Order__c |
Order__c |
Order__ChangeEvent |
Custom__c |
Custom__c |
Custom__ChangeEvent |
For custom objects, swap the trailing __c for __ChangeEvent — the double underscore separator is preserved.