ServiceBrokerListener icon indicating copy to clipboard operation
ServiceBrokerListener copied to clipboard

Recieve empty xml without data when update/delete doesn't match any records

Open MitkoDMTR opened this issue 8 years ago • 3 comments

If you perform update/delete sql query over the table and no records are affected, the message that we recieve is and NotificationType property has value None. Maybe is a good idea if user is not specify None notification type to skip sending such messages from trigger or rising the event.

MitkoDMTR avatar Jul 13 '16 14:07 MitkoDMTR

Hi @MitkoDMTR,

Thanks for the remark. It is a good idea and will be implemented as soon as possible.

Thanks, Dmitrii

dyatchenko avatar Jul 14 '16 18:07 dyatchenko

could this be explained better? what i think you are saying is when an update/delete occurs and no records are changed the NotificationType is None? and you want to skip the Notification Event if NotificationType is None?

If this isnt fixed then i can work on it.

asulwer avatar May 24 '17 18:05 asulwer

First sorry for late response.

Yes, this is exactly what I say - if records are not affected by update/delete, we get notification of type None and xml like "".

On our last project we changed the trigger not to send message to queue. It is possible to do it on c# side, but we decided not to send "empty" messages through the broker.

dimitarlazarovevolution avatar Feb 15 '18 07:02 dimitarlazarovevolution