Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

BadFilterNotAllowed OPC-UA error with KepserverEX V6

More
31 May 2017 17:13 #5188 by support
At a first glance, I do not see anything wrong with your code; this is reinforced by the fact that it has worked with previous server version.

I suggest to wait for a reply from Kepware, because it is quite likely there is an issue on their side, or that at least they can hint to a possible cause.

Best regards

Please Log in or Create an account to join the conversation.

More
31 May 2017 16:05 #5186 by sun21
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.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.053 seconds