# OPC tags stay unhealthy even after device is reconnected

**URL:** <https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741>\
**Category:** Ignition\
**Created:** [April 19, 2021, 10:45am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741 "2021-04-19T10:45:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [April 19, 2021, 10:45am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/1 "2021-04-19T10:45:12Z")

</div>

Hi

We have Ignition Edge installed on a moxa switch which is connected to a Modbus TCP device. I created a device under config\>Opcua\>Devices. Everything is working fine. Every now and then if I power cycle the whole panel (Edge device + Modbus device), my tags change to “Bad\_NotConnected”. If I then go to config\>Opcua\>Devices I see the device is connected. If I then go to config\>opc\>OPC Quick client, I can drill down to the device and r/w any value without any issues. The problem is that all my tags stay “Bad\_NotConnected” until I restart the edge device or re-enable the device under config\>Opcua\>Devices (sometimes) or restart the opc ua module.

It is as if the GW eventually makes connection to the Modbus device but the tags don’t. Any Idea what could cause/solve this issue?

I did set Max Retry Count = 10 (config\>Opcua\>Devices\>MyMBDevice\>edit) but that didn’t seem to help.

---

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [April 20, 2021, 5:48am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/2 "2021-04-20T05:48:01Z")

</div>

If I need to include any additional information, please let me know. The issue is that this system is going to be running on a remote site from the end of this week and if for some reason a power loss/cycle occurs on site, I will have to remotely login and reset whatever is needed to get all the opc tags to become healthy again.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 20, 2021, 7:15am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/3 "2021-04-20T07:15:36Z")

</div>

What version of ignition?

---

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [April 20, 2021, 8:20am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/4 "2021-04-20T08:20:47Z")

</div>

Ignition Edge Version 8.1.3  
And module drivers are shown below:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/84c76bc1c3149d10573743414c2673eb1427bf5f.png)

---

<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:** [April 20, 2021, 11:59am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/5 "2021-04-20T11:59:55Z")

</div>

Hmm. 8.1.5 includes a fix for something that sounds a bit like this…

---

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [April 21, 2021, 6:29am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/6 "2021-04-21T06:29:16Z")

</div>

I went and took a look at the changelog the only thing I could see maybe relating to the issue was the following:

## Connectivity

**2044: TCP Driver can saturate shared execution engine if many devices are defined and unavailable**  
To prevent saturation of the shared execution engine thread pool, the TCP Driver now uses the opc-ua-executor thread pool to connect.

But since 8.1.4 is the current stable build and since this system is now up and running, would it be best if I wait for 8.1.5 stable build?

---

<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:** [April 21, 2021, 1:08pm UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/7 "2021-04-21T13:08:10Z")

</div>

Hmm, you’re right, I don’t see the entry I’m talking about. I’m trying to find out why it’s not there.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 21, 2021, 7:34pm UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/8 "2021-04-21T19:34:27Z")

</div>

Are you thinking of the Allen Bradley driver issue instead?

---

<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:** [April 21, 2021, 7:44pm UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/9 "2021-04-21T19:44:13Z")

</div>

No, we missed a couple change log entries.

The one I'm thinking of will read something like this:

> Fixed a bug that caused tags to get stuck with Bad\_NotConnected or Uncertain\_InitialValue quality on startup or reconnect.

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [April 21, 2021, 7:57pm UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/10 "2021-04-21T19:57:49Z")

</div>

This one?

> Nightly Changelog: 8.1.5-b20210413 - addendum
> 
> **2081: OPC tags get stuck with Bad\_NotConnected or Uncertain\_InitialValue on startup or reconnect**  
> Fixed a bug that caused tags to get stuck with Bad\_NotConnected or Uncertain\_InitialValue quality on startup or reconnect.

---

<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:** [April 21, 2021, 7:59pm UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/11 "2021-04-21T19:59:58Z")

</div>

Yeah that one. It wasn’t in there this morning 🙂

---

<div class="post-metadata">

**Author:** ![hventer23](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hventer23](https://forum.inductiveautomation.com/u/hventer23)\
**Post date:** [April 22, 2021, 5:36am UTC](https://forum.inductiveautomation.com/t/opc-tags-stay-unhealthy-even-after-device-is-reconnected/45741/12 "2021-04-22T05:36:03Z")

</div>

Yes that definitely got added or I missed it multiple times. Thank you for clearing this up for me guys.
