Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Subscription filter on property with "-" in key not working

$
0
0

Hi there,

This is my first foray into Azure Service Bus.

I've created a topic, and submitted several messages to it.  The messages all have a property with the key "x-feed-type" added, and so i've created a subscription with a SqlFilter of "x-feed-type = 'f8'" to filter the messages I want.  To my surprise, the subscription never received any messages, despite adding several messages with an x-feed-type of f8.

Confused by this, I tried removing the filter, and the result was that I started to receive all messages posted to the topic.  I then tried several variations of my original SqlFilter, such as "x-feed-type LIKE 'f8'" or "x-feed-type =\"f8\"", but struggled to get any messages coming through with it in place.

I then tried changing the property name I was using on my BrokeredMessages from x-feed-type to xfeedtype, and to my surprise, when I updated my SqlFilter to "xfeedtype = 'f8'", all messages were being filtered through as expected.

Is there a problem using hyphens in message properties?  I don't see it documented anywhere, but I can't think of any reason why my original filter wouldn't work?

Thanks,

Nick



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>