Skip to main content

I have copy and pasted the sample code from this project https://trailhead.salesforce.com/content/learn/modules/change-data-capture/test-the-change-event-trigger?trailmix_creator_id=strailhead&trailmix_slug=architect-integration-architecture

 

But I'm getting the error 

Method does not exist or incorrect signature: void enableChangeDataCapture() from the type test

 

I have literally not changed anything from the sample code and have successfully completed the preceding steps in the project, so am a bit confused. 

Test.enableChangeDataCapture() method does not exist

#Developer Beginner

8 respuestas
  1. 29 may 2022, 19:21

    Thank you for clarifying Vinay Singh (Deloitte).  That was indeed my problem. I had an empty test class and once I removed it, the test class compiled on the original org.  Thanks! 

0/9000