Cannot push messageChannel to sandbox

216 views
Skip to first unread message

Harsha Sarikonda

unread,
May 18, 2021, 10:37:20 PM5/18/21
to Illuminated Cloud Q&A
I have created a new messageChannel in WebStorm under my src folder and I added it to subscription but when I try to deploy it doesn't get pushed to my sandbox. It just says Deployed 0/0 components in the message box. I checked package.xml for Project and it did get updated successfully as in the screenshot below. The messageChannel name/folder and the package.xml is shown in the screenshot below. What am I missing?Screen Shot 2021-05-18 at 9.28.53 PM.png

Appreciate your help,

Thanks
Harsha

Scott

unread,
May 19, 2021, 9:57:09 AM5/19/21
to Illuminated Cloud Q&A, harsha.s...@gmail.com
I believe the issue is that the file is named "*.messageChannel-meta.xml" in a metadata format project. It should just be named "*.messageChannel". Can you please rename it as such and see if that resolves the issue?

Regards,
Scott Wells

Harsha Sarikonda

unread,
May 19, 2021, 10:05:59 AM5/19/21
to Illuminated Cloud Q&A, Scott, Harsha Sarikonda
Hi Scott,

I renamed it as per your instructions. Now when I try to deploy it is not even showing the file in the deploy menu.
Screen Shot 2021-05-19 at 9.04.57 AM.png
Thanks
Harsha.

Scott

unread,
May 19, 2021, 10:10:16 AM5/19/21
to Illuminated Cloud Q&A, harsha.s...@gmail.com, Scott
And just to clarify, it's been added to your subscription, correct? Your package.xml file (assuming this is a package.xml-based subscription as I see on in the original screenshot) has something like the following in it?

<types>
    <members>GuidedAgentFlowUpdates</members>
    <name>LightningMessageChannel</name>
</types>

If not, please add it to your subscription. An easy way to do that is to right-click on either the "messageChannels" folder or the "*.messageChannel" file itself and then click Illuminated Cloud>Add to Metadata Subscription.

If that doesn't resolve the issue, please provide a screenshot of the deployment dialog so I can see how it's configured.

Regards,
Scott

Harsha Sarikonda

unread,
May 19, 2021, 10:30:32 AM5/19/21
to Illuminated Cloud Q&A, Scott, Harsha Sarikonda
Got it. I completely deleted the file and created it again from scratch following your instructions. 
  1. Renamed it to just channelname.messageChannel instead of adding. -meta.xml at the end of the name
  2. When I did that the package.xml did show the name of the member in the way you have described in your comment above.
Now it is all working fine. Really appreciate your help.

Thank you and have a good day
Harsha

Scott

unread,
May 19, 2021, 10:31:56 AM5/19/21
to Illuminated Cloud Q&A, harsha.s...@gmail.com, Scott
Okay, glad it's working for you now. Probably didn't need to delete/re-add the file (or if you did, that would most certainly be a bug), but the process you followed certainly allowed you to be sure things were correct. Thanks for keeping me posted!

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages