# \[IGN-13936\] OPC UA - Reconnect after session timeout - Tags stay in Bad\_InvalidState

**URL:** <https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776>\
**Category:** Ignition Early Access\
**Created:** [August 14, 2025, 3:24pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776 "2025-08-14T15:24:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [August 14, 2025, 3:24pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/1 "2025-08-14T15:24:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 14, 2025, 3:27pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/2 "2025-08-14T15:27:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 14, 2025, 4:03pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/3 "2025-08-14T16:03:52Z")

</div>

Never mind, I can reproduce this, I don’t think I need anything further from you.

---

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [August 14, 2025, 4:25pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/4 "2025-08-14T16:25:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [September 5, 2025, 12:22pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/5 "2025-09-05T12:22:18Z")

</div>

Hi Kervin, just want to ask if there will be a fix for this. Thank you!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 5, 2025, 12:33pm UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/6 "2025-09-05T12:33:09Z")

</div>

It was fixed in whatever release came on the Monday that followed this discussion.

---

<div class="post-metadata">

**Author:** ![sfatimazahrak](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sfatimazahrak](https://forum.inductiveautomation.com/u/sfatimazahrak)\
**Post date:** [October 1, 2025, 10:57am UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/7 "2025-10-01T10:57:25Z")

</div>

Is there a fix for this? Facing a similar issue on 8.3

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 1, 2025, 11:08am UTC](https://forum.inductiveautomation.com/t/ign-13936-opc-ua-reconnect-after-session-timeout-tags-stay-in-bad-invalidstate/109776/8 "2025-10-01T11:08:59Z")

</div>

If you're on the release version of Ignition 8.3.0 then please contact support so they can collect your logs and other information.
