I am trying to create a message channel via VS Code in my salesforceDX project. I have followed the document provided by the salesforce.

When I am trying to deploy that message channel file I am getting the below error.

ERROR running force:source:deploy: Unexpected file found in package directory: /Users/Chintan/force-app/main/default/messageChannels/messageDemo.messageChannels-meta.xml

Can anyone please suggest to me how I can solve this issue?

Here is my project

enter image description here

Thanks in advance


Your filename is incorrect. Per the documentation,

The LightningMessageChannel file name follows the format messageChannelName.messageChannel-meta.xml.

rather than .messageChannels-meta.xml.

  • Thanks, @David.
    – Chintan
    Feb 17 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.