I'm trying to implement CDC using the EMP Connector sample.

I run it against the sandbox and try to subscribe to channels such as /data/ChangeEvents or /data/AccountChangeEvent.

I always get this error:

com.salesforce.emp.connector.CannotSubscribe: Unable to subscribe to [/data/ChangeEvents:-2] [https://xxx--QA.csyyy.my.salesforce.com/cometd/43.0] : 400::The channel specified is not valid {/data/ChangeEvents}

Am I missing something?

  • 2
    Have you enabled CDC from settings? Commented Feb 21, 2019 at 13:02
  • You are correct. Our admin didn't do it.Now it works perfectly. Thanks! :) Commented Feb 21, 2019 at 17:05

1 Answer 1


CDC events only fire when you enable CDC from Setup.

You can enable Change Data Capture from Setup -> Change Data Capture and Select Objects for whom you wanna enable CDC

  • 1
    I have been trying to receive the CDC events via EMP Connector in the terminal, but it does not work. The subscription is successful though. My guess is that Salesforce is not generating the CDC events. However, I tested with PushTopic and it seems to work just fine. Any idea why this may be happening? Commented Nov 26, 2019 at 9:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .