Problem:
After we've upgraded KepserverEx OPC server from V5 to V6 errors appeared.
Client subscription to tags with
boolean datatype are failing with following message.
(everything was OK for KS V5 --> OPC client v4.51, our C# code was not changed.)
Message:
..., error code: -2142961664, error message: OPC-UA service result - An error specific to OPC-UA service occurred.
---- SERVICE RESULT ----
StatusCode: {BadFilterNotAllowed} = 0x80450000 (2152005632)
Event handler code:
private void MonitoredItemChangedEvent(object self, EasyUADataChangeNotificationEventArgs e)
{
var tag = e.Arguments.NodeDescriptor.NodeId.Identifier.ToString();
if (e.Succeeded && e.Exception == null)
{
...
}
else
{
Logger.LogError(string.Format("Failed to write item changed event for tag '{2}', error code: {0}, error message: {1}. (repeated messages will be suppressed)",
e.ErrorCode, e.ErrorMessage, tag));
}
Subscription code:
...
filter = new UADataChangeFilter(UADataChangeTrigger.StatusValue);
easyUaMonitoredItemArguments.Add(
new EasyUAMonitoredItemArguments(MonitoredItemChangedEvent,
dataItemHandle,
_endPointDescriptor,
nodeDescriptor,
new UAMonitoringParameters(dataItem.SamplingIntervalMs,
filter,
_uaMonitoringQueueSize
)
)
);
var monitoredItemHandles = _easyUaClient.SubscribeMultipleMonitoredItems(easyUaMonitoredItemArguments.ToArray());
...
We are not sure where to look.
Can you please suggest a solution or workaround? KS support was also notified.