cancel
Showing results for 
Search instead for 
Did you mean: 

Register for ModelChangeEvents failed: CreateMonitoredItems returned BadAttributeIdInvalid for item

Register for ModelChangeEvents failed: CreateMonitoredItems returned BadAttributeIdInvalid for item

leonberger-m
Established Member

Hello, 

since updating our "OPC UA Server" App from version 2.4.0 to 2.6.3 something went wrong with connecting to the OPC Server, e.g. from UA Expert. 

Error-Message: Register for ModelChangeEvents failed: createMonitoredItems returned BadAttributeIdInvalid for item 0

Unfortunately it seems that this error has an impact to our MES. 
So we try to analyze what has been changed or what has to be configured in addition? Is there a way to fix or configure it? 

In the example below the OPC UA Server has been completely re-installed on the core. Even the configuration has been resetted. 

Version 2.4.0 

leonbergerm_0-1727354855340.png

leonbergerm_1-1727354871534.png

Version 2.6.x (tested with 2.6.1 as well as 2.6.2) 

leonbergerm_3-1727356628204.png

 

leonbergerm_2-1727356617690.png

Thanks for your support, 
Markus

6 REPLIES 6

CodeWasi
Occasional Contributor

Hello!
informed the developer colleagues, they will return to you.
Please confirm, that UA_Expert is able to browse with ctrl-OPCUA_Server 2.4 but not with 2.6 .

The message you added with "addressSpaceModel ... is listed in the UA_EXpert? Could you please tell the version you operate with for completeness. 
Bye

Hello @CodeWasi ,

we are able to browse the nodes with 2.4 as well as 2.6.x. 
The only difference is the error message and the possibility that the UA Expert is not able to register to the ModelChangeEvents. 
This message is listed in the UA Expert. 
Normally this is not a big issue but in that case we got some troubles with the connection to our MES (toolkit).
That's why we want to understand where the different behaviour between 2.4 and 2.6.x comes from? 

UA Expert is used in version 1.5.0.319

Regards Markus

Hello @leonberger-m,

we can reproduce the issue. The problems comes with the new event feature supported by our OPC UA Server. Unfortunately, the error occurs if a OPC UA Client wants to subscribe to ModelChangeEvents on our Server. Currently we are working on bugfixing the issue.

The only know workaround currently is to ignoring the error or to not subscribe to ModelChangeEvents.

Best regards

smueller

Hello @smueller , 

thank you for the information. Since we are not able to influence the way the MES is subscibing to the CtrlX OPC UA server we have downgraded the OPC UA server to version 2.4 until there is a bugfix provided. This workaround seems to work quite well, too. 

best regards

Markus 

Hello @smueller , 

any news on this issue? Is there already a planned fix for the problem? 

Best regards
Markus

Hello,

the bugfix for the error, that occurs inside the UA-Expert, is included inside the next release 3.4.

It can be included into the next patch of the version 2.6 (scheduled for november) as well, if you are sure, that it will also solve the problem with you MES system.
Maybe you could send us a WireShark trace that contains the MES problem (with version 2.6) so we can be sure that we also have solve this problem.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist