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

1 Answer 1


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
    Commented Feb 17, 2021 at 12:24

You must log in to answer this question.

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