# Tags stay bad after Ignition reconnects to local third party OPC-UA server

**URL:** <https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 29, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847 "2020-12-29T18:28:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![liam](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@liam](https://forum.inductiveautomation.com/u/liam)\
**Post date:** [December 29, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/1 "2020-12-29T18:28:09Z")

</div>

I’m using some kind of proprietary OPC tunneling software provided by the manufacturer to talk to several of their machines. The software connects to each machine’s OPC-DA server remotely and then creates a local OPC-UA server on the same server as Ignition for each, which Ignition (v8.0.15) is then connected to.

The connections work fine until something causes them to fault, usually because a machine is turned off. However, once the connection is re-established, the status changes back to “Connected” on the OPC Connections page of the Ignition gateway but the tags stay on bad quality with unknown values. I’m also able to browse the tags in the OPC-UA software itself and via a separate OPC client installed on the same server, which leads me to think that the problem is with Ignition.

I’m sometimes able to get it working again by disabling the OPC connection in the gateway and then re-enabling it, but not always.

Any ideas on how to fix this?

Thanks

---

<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:** [January 2, 2021, 8:01pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/2 "2021-01-02T20:01:31Z")

</div>

If you can invoke the fault at will, try setting the log levels for the loggers found by searching `OpcUaSubscriptionModel` and `OpcUaSubscriptionSynchronizer` to TRACE and then cause it to fault and reconnect. After it’s had some time to try and re-create subscriptions after reconnecting grab the logs and upload them here.

[https://docs.inductiveautomation.com/display/DOC81/Diagnostics+-+Logs#Diagnostics-Logs-ChangingLoggingLevels](https://docs.inductiveautomation.com/display/DOC81/Diagnostics+-+Logs#Diagnostics-Logs-ChangingLoggingLevels)

Or, if you can set the connections up without security and get a Wireshark capture during all of this, that would be even better.

---

<div class="post-metadata">

**Author:** ![liam](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@liam](https://forum.inductiveautomation.com/u/liam)\
**Post date:** [January 4, 2021, 4:48pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/3 "2021-01-04T16:48:52Z")

</div>

[Ignition\_OPC\_Log.zip](https://forum.inductiveautomation.com/uploads/short-url/jJc7A141B2P4Lo4fR94S3Kyq5q5.zip) (2.1 MB)

Attached are the logs for when I attempted to refresh the connection to two of the lines by clicking “edit” next to the OPC connections in the gateway and then clicking “save changes” without actually changing anything. Before I did this, the status of all of the OPC server connections was “connected” but all of the tags were bad quality.

Line 3 reconnected successfully after I refreshed the connection but line 4 failed (the logs for that start at 10:22:42). I had to refresh the connection to the line 4 OPC server several times before the tags subscribed successfully.

---

<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:** [January 4, 2021, 4:59pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/4 "2021-01-04T16:59:33Z")

</div>

The only really odd thing I see is that it looks like you have 2 tags being resubscribed (Error\_Code and State) and their initial value comes from the server as null/None, which causes the logic in your tag change scripts to error out.

Nothing else looks odd re: OPC UA but maybe there’s more to it.

I’m still on vacation and will be off the grid for most of the week. I recommend you call support and work with them.

---

<div class="post-metadata">

**Author:** ![liam](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@liam](https://forum.inductiveautomation.com/u/liam)\
**Post date:** [January 4, 2021, 6:01pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/5 "2021-01-04T18:01:23Z")

</div>

Okay, thanks for your help.

---

<div class="post-metadata">

**Author:** ![liam](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@liam](https://forum.inductiveautomation.com/u/liam)\
**Post date:** [January 12, 2021, 8:34pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/6 "2021-01-12T20:34:17Z")

</div>

After talking to support, I changed the tags to a polled scan class and that seems to have fixed the issue.

---

<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:** [January 12, 2021, 8:58pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/7 "2021-01-12T20:58:15Z")

</div>

That’s an unfortunate workaround, not a fix. Thanks for updating anyway I guess.

---

<div class="post-metadata">

**Author:** ![liam](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@liam](https://forum.inductiveautomation.com/u/liam)\
**Post date:** [January 15, 2021, 5:17pm UTC](https://forum.inductiveautomation.com/t/tags-stay-bad-after-ignition-reconnects-to-local-third-party-opc-ua-server/41847/8 "2021-01-15T17:17:07Z")

</div>

That’s true but support were unable to identify the root cause so that’s the closest to a fix I could get.
