Hi,
after a longer connection issue to an OPC-UA server (Prosys) and a reconnect, all tags stay in a bad mode with the following error:
Error("CreateMonitoredItems failed: Bad_InvalidState: The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.")
We can add tags again from the OPC-UA server (after reconnect) and those tags work, but the other keep staying in bad mode.
Is it possible to transfer the OPC-UA session, so that we do not have to add the tags again after such an issue?
This issue was with v8.3. We did not test it with a stable 8.1
To help troubleshoot this I will need you to turn the logger for “OpcUaSubscriptionManager” to DEBUG level, start a Wireshark capture (make sure the connection is not using security), and then let this all run until you are able to reproduce.
Never mind, I can reproduce this, I don’t think I need anything further from you.
I will try to reproduce it tomorrow!
Some additional information:
- The SessionTimout was larger than the disconnect time
- After I updated the OPC UA Connection, the tags were working again.
- I tried again some small disconnects without any issue. The only thing, I had the feeling, that the queue size had no effect. At least for event streams and tag source. I will check this tomorrow with a historian. The queue size was accepted by the server